From 61ffad8df484ab9b3f7d2f5519ec470fbc023b88 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 15 May 2015 15:13:25 -0700 Subject: Fix leaks in the embedder tests themselves. Also change EmbedderTest::TearDown() to match the destruction order in Chromium's PDF code. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1138143003 --- fpdfsdk/src/fpdfview_embeddertest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp') diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp index f885aa663a..cc0aa1f818 100644 --- a/fpdfsdk/src/fpdfview_embeddertest.cpp +++ b/fpdfsdk/src/fpdfview_embeddertest.cpp @@ -194,6 +194,7 @@ TEST_F(FPDFViewEmbeddertest, Crasher_452455) { EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); FPDF_PAGE page = LoadPage(0); EXPECT_NE(nullptr, page); + UnloadPage(page); } TEST_F(FPDFViewEmbeddertest, Crasher3) { -- cgit v1.2.3