From 5532835aeb884642571be2f7b741b5f49f76cd64 Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 21 Oct 2016 13:53:04 -0700 Subject: Re-enable CHECK() than only 0-numbered objects are released. Review-Url: https://chromiumcodereview.appspot.com/2424933002 --- core/fpdfapi/parser/cpdf_object.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/fpdfapi/parser/cpdf_object.cpp b/core/fpdfapi/parser/cpdf_object.cpp index 3bf0a953db..5c407336e2 100644 --- a/core/fpdfapi/parser/cpdf_object.cpp +++ b/core/fpdfapi/parser/cpdf_object.cpp @@ -38,9 +38,7 @@ CPDF_Object* CPDF_Object::CloneNonCyclic( } void CPDF_Object::Release() { - if (m_ObjNum) - return; - + CHECK(!m_ObjNum); delete this; } -- cgit v1.2.3