Set m_pLinearized to NULL after release
authorBo Xu <bo_xu@foxitsoftware.com>
Mon, 25 Aug 2014 22:22:07 +0000 (15:22 -0700)
committerBo Xu <bo_xu@foxitsoftware.com>
Mon, 25 Aug 2014 22:22:07 +0000 (15:22 -0700)
BUG=406868
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/504993002

core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp

index f1ca104..1b62b06 100644 (file)
@@ -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()) {