Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: core/include/fpdfapi/fpdf_objects.h

Issue 1514093002: Fix memory leaks involving InsertIndirectObject() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/include/fpdfapi/fpdf_objects.h
diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h
index 532ede2a08a222d9af7812f3d8cb32390590140f..ba2bbb3fab1ea15258be2efbe993e9cf630a7cae 100644
--- a/core/include/fpdfapi/fpdf_objects.h
+++ b/core/include/fpdfapi/fpdf_objects.h
@@ -609,7 +609,7 @@ class CPDF_IndirectObjects {
void ReleaseIndirectObject(FX_DWORD objnum);
- void InsertIndirectObject(FX_DWORD objnum, CPDF_Object* pObj);
+ FX_BOOL InsertIndirectObject(FX_DWORD objnum, CPDF_Object* pObj);
Tom Sepez 2015/12/10 17:32:12 nit: add a comment // Takes ownership of |pObj|.
jun_fang 2015/12/10 23:24:26 Acknowledged.
FX_DWORD GetLastObjNum() const;

Powered by Google App Engine
This is Rietveld 408576698