| Index: core/fpdfapi/parser/cpdf_dictionary.cpp
|
| diff --git a/core/fpdfapi/parser/cpdf_dictionary.cpp b/core/fpdfapi/parser/cpdf_dictionary.cpp
|
| index 37efbbc34a8afaa839572b813d54433574d8a66c..75cb1e859cf8e235a02ef038691aeed67dd66a9c 100644
|
| --- a/core/fpdfapi/parser/cpdf_dictionary.cpp
|
| +++ b/core/fpdfapi/parser/cpdf_dictionary.cpp
|
| @@ -31,7 +31,7 @@
|
| m_ObjNum = kInvalidObjNum;
|
| for (const auto& it : m_Map) {
|
| if (it.second && it.second->GetObjNum() != kInvalidObjNum)
|
| - delete it.second;
|
| + it.second->Release();
|
| }
|
| }
|
|
|
| @@ -184,7 +184,7 @@
|
|
|
| if (it->second == pObj)
|
| return;
|
| - delete it->second;
|
| + it->second->Release();
|
|
|
| if (pObj)
|
| it->second = pObj;
|
| @@ -208,7 +208,7 @@
|
| if (it == m_Map.end())
|
| return;
|
|
|
| - delete it->second;
|
| + it->second->Release();
|
| m_Map.erase(it);
|
| }
|
|
|
| @@ -223,7 +223,7 @@
|
| return;
|
|
|
| if (new_it != m_Map.end()) {
|
| - delete new_it->second;
|
| + new_it->second->Release();
|
| new_it->second = old_it->second;
|
| } else {
|
| m_Map.insert(std::make_pair(MaybeIntern(newkey), old_it->second));
|
|
|