diff options
author | tsepez <tsepez@chromium.org> | 2016-10-21 13:53:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-21 13:53:04 -0700 |
commit | 5532835aeb884642571be2f7b741b5f49f76cd64 (patch) | |
tree | 5add652a0d9cbc03a56e3625bf34563d4dfd0209 /core/fpdfapi/parser | |
parent | a804fd48b71679ece1f1c2284c3c1835c9e20441 (diff) | |
download | pdfium-5532835aeb884642571be2f7b741b5f49f76cd64.tar.xz |
Re-enable CHECK() than only 0-numbered objects are released.
Review-Url: https://chromiumcodereview.appspot.com/2424933002
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_object.cpp | 4 |
1 files changed, 1 insertions, 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; } |