summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r--samples/pdfium_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index a9904ab221..c5ac75e663 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -356,8 +356,8 @@ void RenderPdf(const char* name, const char* pBuf, size_t len,
}
FORM_DoDocumentAAction(form, FPDFDOC_AACTION_WC);
- FPDFDOC_ExitFormFillEnviroument(form);
FPDF_CloseDocument(doc);
+ FPDFDOC_ExitFormFillEnviroument(form);
FPDFAvail_Destroy(pdf_avail);
printf("Loaded, parsed and rendered %zu pages.\n", rendered_pages);