Index: core/fpdfapi/parser/cpdf_syntax_parser.cpp |
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.cpp b/core/fpdfapi/parser/cpdf_syntax_parser.cpp |
index 9beae0b7f7ffac229be729def798a09e70bba787..2a20e43591a02c30eeb0bba288c67d67b4ac0b67 100644 |
--- a/core/fpdfapi/parser/cpdf_syntax_parser.cpp |
+++ b/core/fpdfapi/parser/cpdf_syntax_parser.cpp |
@@ -756,8 +756,9 @@ std::unique_ptr<CPDF_Stream> CPDF_SyntaxParser::ReadStream( |
return pStream; |
} |
-void CPDF_SyntaxParser::InitParser(IFX_SeekableReadStream* pFileAccess, |
- uint32_t HeaderOffset) { |
+void CPDF_SyntaxParser::InitParser( |
+ const CFX_RetainPtr<IFX_SeekableReadStream>& pFileAccess, |
+ uint32_t HeaderOffset) { |
FX_Free(m_pFileBuf); |
m_pFileBuf = FX_Alloc(uint8_t, m_BufSize); |