Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index 2534a5f12317c037ed7c68e9dd5a6200e6fdd14f..a342cd8b6a6e9def55440b7f970ab3abc7a2f486 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -413,7 +413,7 @@ SkCodec::Result SkJpegCodec::onStartScanlineDecode(const SkImageInfo& dstInfo, |
// Remove objects used for sampling. |
fSwizzler.reset(nullptr); |
fSrcRow = nullptr; |
- fStorage.free(); |
+ fStorage.reset(); |
// Now, given valid output dimensions, we can start the decompress |
if (!jpeg_start_decompress(fDecoderMgr->dinfo())) { |