commit | 1b04ea3b0fbae3be3ae6b3824c5e0dadc0e73d44 | [log] [tgz] |
---|---|---|
author | Bo Xu <bo_xu@foxitsoftware.com> | Mon Aug 25 15:22:07 2014 -0700 |
committer | Bo Xu <bo_xu@foxitsoftware.com> | Mon Aug 25 15:22:07 2014 -0700 |
tree | 9eb17493016740e211c9555ac9ce9ce59193cbf8 | |
parent | a3c721599174abedd7c1ffe2ea03637e6c5e97b1 [diff] |
Set m_pLinearized to NULL after release BUG=406868 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/504993002
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp index f1ca104..1b62b06 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 @@ 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()) {