Index: samples/pdfium_test.cc |
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc |
index a3cc645db376065400fafd4a7845d487e8e133da..a91e13250662f710146f8c639efc4276d1a302b3 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); |