Index: src/codec/SkCodec_libpng.cpp |
diff --git a/src/codec/SkCodec_libpng.cpp b/src/codec/SkCodec_libpng.cpp |
index d29ca8a2a300bbc2635a93c05b6b8c33d1fca220..2b9603fd96743ac560579ecb082e42036110ac41 100644 |
--- a/src/codec/SkCodec_libpng.cpp |
+++ b/src/codec/SkCodec_libpng.cpp |
@@ -471,7 +471,7 @@ SkCodec::Result SkPngCodec::initializeSwizzler(const SkImageInfo& requestedInfo, |
copy_color_table(requestedInfo, fColorTable, ctable, ctableCount); |
// Create the swizzler. SkPngCodec retains ownership of the color table. |
- const SkPMColor* colors = fColorTable ? fColorTable->readColors() : NULL; |
+ const SkPMColor* colors = get_color_ptr(fColorTable.get()); |
fSwizzler.reset(SkSwizzler::CreateSwizzler(fSrcConfig, colors, requestedInfo, |
options.fZeroInitialized)); |
if (!fSwizzler) { |