diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2015-12-16 21:23:39 -0800 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2015-12-16 21:23:39 -0800 |
commit | fc75136232f1979217d7597b2c9c5966436eb1e1 (patch) | |
tree | c6e2ca6bdc9e7a14137175bd29e90d35663b2480 /fpdfsdk | |
parent | 692c03ffe2bd7033dc2e31163095efebace7e642 (diff) | |
download | pdfium-fc75136232f1979217d7597b2c9c5966436eb1e1.tar.xz |
Fix memory leaking in FPDF_LoadCustomDocument()
BUG=pdfium:245
R=thestig@chromium.org, tsepez@chromium.org
Review URL: https://codereview.chromium.org/1526873006 .
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/src/fpdfview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index 1ae1baf415..b817ff90aa 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -735,7 +735,7 @@ DLLEXPORT void STDCALL FPDF_ClosePage(FPDF_PAGE page) { DLLEXPORT void STDCALL FPDF_CloseDocument(FPDF_DOCUMENT document) { #ifdef PDF_ENABLE_XFA - delete CPDFDocumentFromFPDFDocument(document); + delete UnderlyingFromFPDFDocument(document); #else // PDF_ENABLE_XFA CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); if (!pDoc) |