summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-21 13:53:04 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-21 13:53:04 -0700
commit5532835aeb884642571be2f7b741b5f49f76cd64 (patch)
tree5add652a0d9cbc03a56e3625bf34563d4dfd0209 /core/fpdfapi/parser
parenta804fd48b71679ece1f1c2284c3c1835c9e20441 (diff)
downloadpdfium-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.cpp4
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;
}