Index: samples/pdfium_test.cc |
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc |
index 19b6b4642eb0cc7bcbb11f909e25c77c04579b60..c9d84af04d51e5724190d8c0c497e358a2f6a2d4 100644 |
--- a/samples/pdfium_test.cc |
+++ b/samples/pdfium_test.cc |
@@ -390,6 +390,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; |
} |