diff options
author | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:13:25 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:13:25 -0700 |
commit | 61ffad8df484ab9b3f7d2f5519ec470fbc023b88 (patch) | |
tree | 0bc082f49a3961df5138928ee84f4a47eb1de4c7 /samples/pdfium_test.cc | |
parent | 9f6f34892fdfff87c49a9df4c1e34790c0fa1272 (diff) | |
download | pdfium-61ffad8df484ab9b3f7d2f5519ec470fbc023b88.tar.xz |
Fix leaks in the embedder tests themselves.
Also change EmbedderTest::TearDown() to match the destruction order in
Chromium's PDF code.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1138143003
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r-- | samples/pdfium_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index a3cc645db3..a91e132506 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -550,8 +550,8 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len, } FORM_DoDocumentAAction(form, FPDFDOC_AACTION_WC); - FPDFDOC_ExitFormFillEnvironment(form); FPDF_CloseDocument(doc); + FPDFDOC_ExitFormFillEnvironment(form); FPDFAvail_Destroy(pdf_avail); fprintf(stderr, "Rendered %d pages.\n", rendered_pages); |