From e0bb17b98ce909edee8b14c2b2036b71b3f75593 Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Fri, 11 Dec 2015 22:01:55 -0800 Subject: Merge to XFA: Fix memory leaks involving InsertIndirectObject() BUG=447331 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1514093002 . Review URL: https://codereview.chromium.org/1515403003 . --- core/include/fpdfapi/fpdf_objects.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/fpdfapi/fpdf_objects.h') diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h index 8522e9be64..c220a0cb1e 100644 --- a/core/include/fpdfapi/fpdf_objects.h +++ b/core/include/fpdfapi/fpdf_objects.h @@ -611,8 +611,8 @@ class CPDF_IndirectObjects { FX_DWORD AddIndirectObject(CPDF_Object* pObj); void ReleaseIndirectObject(FX_DWORD objnum); - - void InsertIndirectObject(FX_DWORD objnum, CPDF_Object* pObj); + // Takes ownership of |pObj|. + FX_BOOL InsertIndirectObject(FX_DWORD objnum, CPDF_Object* pObj); FX_DWORD GetLastObjNum() const; -- cgit v1.2.3