| Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
|
| index 74eabe13966fb0f060599243b33d1509aba337db..a12a2894a5bc27cd5360d9e734f675cef7e2bc30 100644
|
| --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
|
| +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
|
| @@ -1732,9 +1732,7 @@ CPDF_SyntaxParser::CPDF_SyntaxParser() {
|
| m_bFileStream = FALSE;
|
| }
|
| CPDF_SyntaxParser::~CPDF_SyntaxParser() {
|
| - if (m_pFileBuf) {
|
| - FX_Free(m_pFileBuf);
|
| - }
|
| + FX_Free(m_pFileBuf);
|
| }
|
| FX_BOOL CPDF_SyntaxParser::GetCharAt(FX_FILESIZE pos, uint8_t& ch) {
|
| FX_FILESIZE save_pos = m_Pos;
|
| @@ -2589,10 +2587,7 @@ CPDF_Stream* CPDF_SyntaxParser::ReadStream(CPDF_Dictionary* pDict,
|
| }
|
| void CPDF_SyntaxParser::InitParser(IFX_FileRead* pFileAccess,
|
| FX_DWORD HeaderOffset) {
|
| - if (m_pFileBuf) {
|
| - FX_Free(m_pFileBuf);
|
| - m_pFileBuf = NULL;
|
| - }
|
| + FX_Free(m_pFileBuf);
|
| m_pFileBuf = FX_Alloc(uint8_t, m_BufSize);
|
| m_HeaderOffset = HeaderOffset;
|
| m_FileLen = pFileAccess->GetSize();
|
|
|