diff options
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r-- | core/fpdfapi/page/cpdf_image.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_image.cpp b/core/fpdfapi/page/cpdf_image.cpp index 2c117fdc71..7d16dd9618 100644 --- a/core/fpdfapi/page/cpdf_image.cpp +++ b/core/fpdfapi/page/cpdf_image.cpp @@ -323,7 +323,8 @@ void CPDF_Image::SetImage(const CFX_RetainPtr<CFX_DIBitmap>& pBitmap) { void CPDF_Image::ResetCache(CPDF_Page* pPage, const CFX_RetainPtr<CFX_DIBitmap>& pBitmap) { - pPage->GetRenderCache()->ResetBitmap(m_pStream.Get(), pBitmap); + CFX_RetainPtr<CPDF_Image> pHolder(this); + pPage->GetRenderCache()->ResetBitmap(pHolder, pBitmap); } CFX_RetainPtr<CFX_DIBSource> CPDF_Image::LoadDIBSource() const { |