summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
authorxiaoxia_yu <xiaoxia_yu@foxitsoftware.com>2014-10-30 10:36:45 +0800
committerBo Xu <bo_xu@foxitsoftware.com>2014-11-03 11:10:20 -0800
commit4e0dc7a0a36b3d3fbf2d74e96fafbc79946c2afb (patch)
tree1522f7e3fe49a1e706b227892da8e71ee5d6345c /samples/pdfium_test.cc
parentca97940e04b0c6894e7966dd9dc99e84dcf0f560 (diff)
downloadpdfium-4e0dc7a0a36b3d3fbf2d74e96fafbc79946c2afb.tar.xz
Update CloseDocument and ExitForm
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);