summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/pdfium_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 10504251c7..66dd3f2f1b 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -391,6 +391,7 @@ void RenderPdf(const std::string& name, const char* pBuf, size_t len,
if (!doc) {
fprintf(stderr, "Load pdf docs unsuccessful.\n");
+ FPDFAvail_Destroy(pdf_avail);
return;
}