diff options
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 7e9ca68cef..0d76b63f26 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); - FPDF_CloseDocument(doc); FPDFDOC_ExitFormFillEnvironment(form); + FPDF_CloseDocument(doc); FPDFAvail_Destroy(pdf_avail); fprintf(stderr, "Rendered %d pages.\n", rendered_pages); |