summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-07-15 17:10:52 -0700
committerLei Zhang <thestig@chromium.org>2015-07-15 17:10:52 -0700
commit281d1d293dab54cadd214e5a1c098583fbbe0788 (patch)
treecd9db13d20a4b46e40cdc3f3080b39559914ac3d /samples/pdfium_test.cc
parent5b4f57cdc0a279bd9b8e03b8f5714b9d39e642a8 (diff)
downloadpdfium-281d1d293dab54cadd214e5a1c098583fbbe0788.tar.xz
Flip the shut down order in tests.
This matches the Chromium PDF plugin changes in https://codereview.chromium.org/1230313006/ R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1237233006 .
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 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);