Index: core/fpdfapi/page/cpdf_image.cpp |
diff --git a/core/fpdfapi/page/cpdf_image.cpp b/core/fpdfapi/page/cpdf_image.cpp |
index 5d1d51de896e6a61933d2dfea34012780a22072c..a17222e3430d39ccf58afc1809d2d9ae436a0909 100644 |
--- a/core/fpdfapi/page/cpdf_image.cpp |
+++ b/core/fpdfapi/page/cpdf_image.cpp |
@@ -116,7 +116,8 @@ std::unique_ptr<CPDF_Dictionary> CPDF_Image::InitJPEG(uint8_t* pData, |
return pDict; |
} |
-void CPDF_Image::SetJpegImage(IFX_SeekableReadStream* pFile) { |
+void CPDF_Image::SetJpegImage( |
+ const CFX_RetainPtr<IFX_SeekableReadStream>& pFile) { |
uint32_t size = pdfium::base::checked_cast<uint32_t>(pFile->GetSize()); |
if (!size) |
return; |