diff options
author | tsepez <tsepez@chromium.org> | 2016-10-10 11:25:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-10 11:25:02 -0700 |
commit | 5609f39c9d4534733f04a2be631da56948c2e96f (patch) | |
tree | 0d2d37e9111a5676e8e55092478fd8a6491e857d /core/fpdfapi/parser/cpdf_object.cpp | |
parent | 24ba0a2ef48d7be37f02056d20bb8c625f641939 (diff) | |
download | pdfium-5609f39c9d4534733f04a2be631da56948c2e96f.tar.xz |
Revert "Re-land "Assert that only 0-numbered objects are Released()""
This reverts commit b69a98cf50537130f88ce3a799117f2ca8353ac5.
Reason for revert: crashes on mac.
BUG=654387
TBR=thestig@chromium.org
Review-Url: https://codereview.chromium.org/2410483002
Diffstat (limited to 'core/fpdfapi/parser/cpdf_object.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_object.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_object.cpp b/core/fpdfapi/parser/cpdf_object.cpp index 5c407336e2..3bf0a953db 100644 --- a/core/fpdfapi/parser/cpdf_object.cpp +++ b/core/fpdfapi/parser/cpdf_object.cpp @@ -38,7 +38,9 @@ CPDF_Object* CPDF_Object::CloneNonCyclic( } void CPDF_Object::Release() { - CHECK(!m_ObjNum); + if (m_ObjNum) + return; + delete this; } |