Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1788)

Unified Diff: samples/pdfium_test.cc

Issue 1410333007: Fix i#263: memory leaks from RenderPdf (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: update commit message Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698