From 836f7d5d23b0951c8be86ccca54ebad43179febe Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 10 Oct 2016 14:31:05 -0700 Subject: Land all the fixes from 5609f39c but don't enable assert Split this off so that we don't keep losing this when the assert is reverted again. Review-Url: https://codereview.chromium.org/2401423005 --- core/fpdfapi/parser/cpdf_array.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fpdfapi/parser/cpdf_array.cpp') diff --git a/core/fpdfapi/parser/cpdf_array.cpp b/core/fpdfapi/parser/cpdf_array.cpp index 9a2dba0161..0d0c02f28d 100644 --- a/core/fpdfapi/parser/cpdf_array.cpp +++ b/core/fpdfapi/parser/cpdf_array.cpp @@ -23,7 +23,7 @@ CPDF_Array::~CPDF_Array() { // in case of cyclic references. m_ObjNum = kInvalidObjNum; for (auto& it : m_Objects) { - if (it) + if (it && it->GetObjNum() != kInvalidObjNum) it->Release(); } } -- cgit v1.2.3