diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-08 15:23:27 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-08 20:31:16 +0000 |
commit | 2e5f0ae97c163841c93c891aa5933adbde47e710 (patch) | |
tree | efb44c1e304ccf5873deaaa3f3b6316c0638b187 /fpdfsdk/fpdfeditpage.cpp | |
parent | 9f0e85ac36826e39a242f8039c2b2c333ee99f4f (diff) | |
download | pdfium-2e5f0ae97c163841c93c891aa5933adbde47e710.tar.xz |
Added FPDFPageObj_Destroy() for freeing page objects created
Bug=pdfium:854
Change-Id: I227418cdcb77e0aa7d48338f1ee0d753cef6bfdb
Reviewed-on: https://pdfium-review.googlesource.com/10390
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Jane Liu <janeliulwq@google.com>
Diffstat (limited to 'fpdfsdk/fpdfeditpage.cpp')
-rw-r--r-- | fpdfsdk/fpdfeditpage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfeditpage.cpp b/fpdfsdk/fpdfeditpage.cpp index a7ee212aee..91b966c384 100644 --- a/fpdfsdk/fpdfeditpage.cpp +++ b/fpdfsdk/fpdfeditpage.cpp @@ -201,6 +201,10 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page) { return pPage && pPage->BackgroundAlphaNeeded(); } +DLLEXPORT void STDCALL FPDFPageObj_Destroy(FPDF_PAGEOBJECT page_obj) { + delete CPDFPageObjectFromFPDFPageObject(page_obj); +} + DLLEXPORT FPDF_BOOL STDCALL FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject) { if (!pageObject) |