diff options
author | Lei Zhang <thestig@chromium.org> | 2015-12-14 15:12:47 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-12-14 15:12:47 -0800 |
commit | 1407c979a3ba8599546468d461f5403f317bddd3 (patch) | |
tree | 4398974bcfac842aba44ce2381ecd46af6a07310 /core/src | |
parent | 3026f26aa69e983837d05a5477fe22e79aed0d26 (diff) | |
download | pdfium-1407c979a3ba8599546468d461f5403f317bddd3.tar.xz |
Fix a memory leak in FPDFPageFuncEmbeddertest.chromium/2595chromium/2594chromium/2593
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1514283002 .
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp index 744c4e5ea9..176c923372 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp @@ -11,6 +11,7 @@ TEST_F(FPDFRenderPatternEmbeddertest, LoadError_547706) { // Test shading where object is a dictionary instead of a stream. EXPECT_TRUE(OpenDocument("bug_547706.pdf")); FPDF_PAGE page = LoadPage(0); - RenderPage(page); + FPDF_BITMAP bitmap = RenderPage(page); + FPDFBitmap_Destroy(bitmap); UnloadPage(page); } |