diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2015-12-11 22:01:55 -0800 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2015-12-11 22:01:55 -0800 |
commit | e0bb17b98ce909edee8b14c2b2036b71b3f75593 (patch) | |
tree | af7fec33f4b9122e7fb9d542f6b051efed01c4c1 /core/include/fpdfapi | |
parent | 7554490c37069879f302d9de07eff5d486518c59 (diff) | |
download | pdfium-e0bb17b98ce909edee8b14c2b2036b71b3f75593.tar.xz |
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 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r-- | core/include/fpdfapi/fpdf_objects.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |