Index: samples/pdfium_test.cc |
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc |
index f15e19c75bf9a366b8306ce8388fd88df261e7e4..38b70c8b86f33bc528baaf30ecdc20e6f98e5ec8 100644 |
--- a/samples/pdfium_test.cc |
+++ b/samples/pdfium_test.cc |
@@ -485,6 +485,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; |
} |