Fix pdfium-i#236: memory leaks from RenderPdf
authorQin Zhao <zhaoqin@google.com>
Tue, 20 Oct 2015 22:20:11 +0000 (18:20 -0400)
committerQin Zhao <zhaoqin@google.com>
Tue, 20 Oct 2015 22:20:11 +0000 (18:20 -0400)
commit0223be82e0afcfee7c501ad2754230353bff79ff
treed48eda107907d9ca663f74d7a2132e9f34ef4db2
parentb5dd65f31408dc8c15d202cbb3e8d9ec2afd4520
Fix pdfium-i#236: memory leaks from RenderPdf

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

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

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