summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_dictionary.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-10 11:25:02 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-10 11:25:02 -0700
commit5609f39c9d4534733f04a2be631da56948c2e96f (patch)
tree0d2d37e9111a5676e8e55092478fd8a6491e857d /core/fpdfapi/parser/cpdf_dictionary.cpp
parent24ba0a2ef48d7be37f02056d20bb8c625f641939 (diff)
downloadpdfium-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_dictionary.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_dictionary.cpp b/core/fpdfapi/parser/cpdf_dictionary.cpp
index 31f520af0d..7ef5a53551 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 && it.second->GetObjNum() != kInvalidObjNum)
+ if (it.second)
it.second->Release();
}
}