Fix pdfium-i#236: memory leaks from RenderPdf
authorQin Zhao <zhaoqin@google.com>
Tue, 20 Oct 2015 22:31:06 +0000 (18:31 -0400)
committerQin Zhao <zhaoqin@google.com>
Tue, 20 Oct 2015 22:31:06 +0000 (18:31 -0400)
commit0522497f8926993166d5d2ffea256083a9a8dc11
tree037272a63b66de500d4b39bfd437088e7eee19e9
parentb95fc6d9f2f591ba26da38d97adf840762ce049e
Fix pdfium-i#236: memory leaks from RenderPdf

- add FPDFAvail_Destroy(pdf_avail) on the early return path in RenderPdf

TBR=thestig@chromium.org
BUG=pdfium:236

Review URL: https://codereview.chromium.org/1410333007 .

(cherry picked from commit 0223be82e0afcfee7c501ad2754230353bff79ff)

Review URL: https://codereview.chromium.org/1414913003 .
samples/pdfium_test.cc