From 0704e9b8772e89290fa262a044ea0f6db4a58641 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 30 May 2017 10:11:49 -0700 Subject: Release unowned m_pTiffContext before deleting through it Workaround for murky ownership. Note the member will now get cleared as a consequence of Release() Bug: 726887 Change-Id: I3eac3d1aa915497f66a57c5effa892a15d10f583 Reviewed-on: https://pdfium-review.googlesource.com/6079 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- core/fxcodec/codec/ccodec_progressivedecoder.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/fxcodec/codec/ccodec_progressivedecoder.h') diff --git a/core/fxcodec/codec/ccodec_progressivedecoder.h b/core/fxcodec/codec/ccodec_progressivedecoder.h index 6dd7357b12..42d0ee3aba 100644 --- a/core/fxcodec/codec/ccodec_progressivedecoder.h +++ b/core/fxcodec/codec/ccodec_progressivedecoder.h @@ -129,6 +129,8 @@ class CCodec_ProgressiveDecoder : public CCodec_BmpModule::Delegate, CFX_RetainPtr m_pFile; CFX_UnownedPtr m_pCodecMgr; + + // TODO(tsepez): All these contexts probably should be unique_ptrs. FXJPEG_Context* m_pJpegContext; FXPNG_Context* m_pPngContext; std::unique_ptr m_pGifContext; -- cgit v1.2.3