Index: fpdfsdk/fpdfeditimg.cpp |
diff --git a/fpdfsdk/fpdfeditimg.cpp b/fpdfsdk/fpdfeditimg.cpp |
index 2c869ac624c83c7842c02d25395956d2a3a6755d..531a9abc8c9debe6157448cd7b5608dc2856e197 100644 |
--- a/fpdfsdk/fpdfeditimg.cpp |
+++ b/fpdfsdk/fpdfeditimg.cpp |
@@ -32,7 +32,8 @@ FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, |
if (!image_object || !fileAccess || !pages) |
return false; |
- IFX_SeekableReadStream* pFile = MakeSeekableReadStream(fileAccess); |
+ CFX_RetainPtr<IFX_SeekableReadStream> pFile = |
+ MakeSeekableReadStream(fileAccess); |
CPDF_ImageObject* pImgObj = reinterpret_cast<CPDF_ImageObject*>(image_object); |
for (int index = 0; index < nCount; index++) { |
CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); |