Index: core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp b/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
index 800e34b3d1eb62f3a1de4c4fc27c6a5727bc702a..0a15e2dce1c92255ac56438e3cd68f45f1b74f9f 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
@@ -47,6 +47,7 @@ uint32_t CPDF_IndirectObjectHolder::AddIndirectObject(CPDF_Object* pObj) { |
return pObj->m_ObjNum; |
m_LastObjNum++; |
+ m_IndirectObjs[m_LastObjNum].release(); // TODO(tsepez): stop this leak. |
m_IndirectObjs[m_LastObjNum].reset(pObj); |
pObj->m_ObjNum = m_LastObjNum; |
return m_LastObjNum; |