summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-14 15:15:19 -0800
committerLei Zhang <thestig@chromium.org>2015-12-14 15:15:19 -0800
commit6e698d13cde3391eaf745e90649a6bec1c72b0b7 (patch)
tree14754206cd9ed3b74eec1138bca842c889c35ab6 /core/src
parentd847c55b4b032e7b57685d6736b0940ea06cd668 (diff)
downloadpdfium-6e698d13cde3391eaf745e90649a6bec1c72b0b7.tar.xz
Merge to XFA: Fix a memory leak in FPDFPageFuncEmbeddertest.
TBR=dsinclair@chromium.org Review URL: https://codereview.chromium.org/1514283002 . (cherry picked from commit 1407c979a3ba8599546468d461f5403f317bddd3) Review URL: https://codereview.chromium.org/1525013002 .
Diffstat (limited to 'core/src')
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_pattern_embeddertest.cpp3
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);
}