Index: src/codec/SkJpegCodec.h |
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h |
index 87c925d9d17a49ca42ce96b91760f8259e1f33bf..f39bc49910dad8f40f8d853b6bb266178f5b399c 100644 |
--- a/src/codec/SkJpegCodec.h |
+++ b/src/codec/SkJpegCodec.h |
@@ -95,6 +95,12 @@ private: |
SkJpegCodec(const SkImageInfo& srcInfo, SkStream* stream, JpegDecoderMgr* decoderMgr); |
/* |
+ * Explicit destructor is used to ensure that the scanline decoder is deleted |
+ * before the decode manager. |
+ */ |
+ ~SkJpegCodec() override; |
+ |
+ /* |
* Handles rewinding the input stream if it is necessary |
*/ |
bool handleRewind(); |