From 1b04ea3b0fbae3be3ae6b3824c5e0dadc0e73d44 Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Mon, 25 Aug 2014 15:22:07 -0700 Subject: Set m_pLinearized to NULL after release BUG=406868 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/504993002 --- core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/src/fpdfapi/fpdf_parser') diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp index f1ca1041bf..1b62b06749 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp @@ -1509,6 +1509,7 @@ FX_BOOL CPDF_Parser::IsLinearizedFile(IFX_FileRead* pFileAccess, FX_DWORD offset CPDF_Object *pLen = m_pLinearized->GetDict()->GetElement(FX_BSTRC("L")); if (!pLen) { m_pLinearized->Release(); + m_pLinearized = NULL; return FALSE; } if (pLen->GetInteger() != (int)pFileAccess->GetSize()) { -- cgit v1.2.3