diff options
author | tsepez <tsepez@chromium.org> | 2016-10-05 13:39:14 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-05 13:39:14 -0700 |
commit | b69a98cf50537130f88ce3a799117f2ca8353ac5 (patch) | |
tree | fa110acc2814ffea1d7bf74c7b6a61223f2a3065 /core/fpdfapi/parser/cpdf_dictionary.cpp | |
parent | 87a8d4c605ec1c43ccd092b57e1aadf1dfe595de (diff) | |
download | pdfium-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_dictionary.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_dictionary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_dictionary.cpp b/core/fpdfapi/parser/cpdf_dictionary.cpp index 7ef5a53551..31f520af0d 100644 --- a/core/fpdfapi/parser/cpdf_dictionary.cpp +++ b/core/fpdfapi/parser/cpdf_dictionary.cpp @@ -30,7 +30,7 @@ CPDF_Dictionary::~CPDF_Dictionary() { // in case of cyclic references. m_ObjNum = kInvalidObjNum; for (const auto& it : m_Map) { - if (it.second) + if (it.second && it.second->GetObjNum() != kInvalidObjNum) it.second->Release(); } } |