summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_object.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-05 13:39:14 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-05 13:39:14 -0700
commitb69a98cf50537130f88ce3a799117f2ca8353ac5 (patch)
treefa110acc2814ffea1d7bf74c7b6a61223f2a3065 /core/fpdfapi/parser/cpdf_object.cpp
parent87a8d4c605ec1c43ccd092b57e1aadf1dfe595de (diff)
downloadpdfium-b69a98cf50537130f88ce3a799117f2ca8353ac5.tar.xz
Re-land "Assert that only 0-numbered objects are Released()"
This reverts commit b73c99335bfbd158ad16dd59c9c52396ffd2b54b. TBR=thestig@chromium.org Review-Url: https://codereview.chromium.org/2393783004
Diffstat (limited to 'core/fpdfapi/parser/cpdf_object.cpp')
-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;
}