Index: core/fpdfapi/parser/cpdf_syntax_parser.h |
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.h b/core/fpdfapi/parser/cpdf_syntax_parser.h |
index 1e8f736c176f412c9a7da57baf512353afa910c4..8dd9103f1b74e6d08ea5566f37dc441643340082 100644 |
--- a/core/fpdfapi/parser/cpdf_syntax_parser.h |
+++ b/core/fpdfapi/parser/cpdf_syntax_parser.h |
@@ -26,7 +26,9 @@ class CPDF_SyntaxParser { |
explicit CPDF_SyntaxParser(const CFX_WeakPtr<CFX_ByteStringPool>& pPool); |
~CPDF_SyntaxParser(); |
- void InitParser(IFX_SeekableReadStream* pFileAccess, uint32_t HeaderOffset); |
+ void InitParser(const CFX_RetainPtr<IFX_SeekableReadStream>& pFileAccess, |
+ uint32_t HeaderOffset); |
+ |
FX_FILESIZE SavePos() const { return m_Pos; } |
void RestorePos(FX_FILESIZE pos) { m_Pos = pos; } |
@@ -87,7 +89,7 @@ class CPDF_SyntaxParser { |
FX_FILESIZE m_Pos; |
uint32_t m_MetadataObjnum; |
- IFX_SeekableReadStream* m_pFileAccess; |
+ CFX_RetainPtr<IFX_SeekableReadStream> m_pFileAccess; |
FX_FILESIZE m_HeaderOffset; |
FX_FILESIZE m_FileLen; |
uint8_t* m_pFileBuf; |