summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2015-12-11 21:47:04 -0800
committerJun Fang <jun_fang@foxitsoftware.com>2015-12-11 21:47:04 -0800
commit4ea4459ecaf66043f0a8b29f60439a0056ff6036 (patch)
tree93e0d83899ce48c76b4cbf06c52812658c51b38d /core/include/fpdfapi
parentebc7695c60fc3e4afbfa6d9db162a71b190bf685 (diff)
downloadpdfium-4ea4459ecaf66043f0a8b29f60439a0056ff6036.tar.xz
Fix memory leaks involving InsertIndirectObject()
BUG=447331 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1514093002 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r--core/include/fpdfapi/fpdf_objects.h4
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;