summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_parser
diff options
context:
space:
mode:
authorBo Xu <bo_xu@foxitsoftware.com>2014-08-25 15:22:07 -0700
committerBo Xu <bo_xu@foxitsoftware.com>2014-08-25 15:22:07 -0700
commit1b04ea3b0fbae3be3ae6b3824c5e0dadc0e73d44 (patch)
tree9eb17493016740e211c9555ac9ce9ce59193cbf8 /core/src/fpdfapi/fpdf_parser
parenta3c721599174abedd7c1ffe2ea03637e6c5e97b1 (diff)
downloadpdfium-1b04ea3b0fbae3be3ae6b3824c5e0dadc0e73d44.tar.xz
Set m_pLinearized to NULL after release
BUG=406868 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/504993002
Diffstat (limited to 'core/src/fpdfapi/fpdf_parser')
-rw-r--r--core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp1
1 files changed, 1 insertions, 0 deletions
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()) {