summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview_embeddertest.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-05-15 15:13:25 -0700
committerLei Zhang <thestig@chromium.org>2015-05-15 15:13:25 -0700
commit61ffad8df484ab9b3f7d2f5519ec470fbc023b88 (patch)
tree0bc082f49a3961df5138928ee84f4a47eb1de4c7 /fpdfsdk/src/fpdfview_embeddertest.cpp
parent9f6f34892fdfff87c49a9df4c1e34790c0fa1272 (diff)
downloadpdfium-61ffad8df484ab9b3f7d2f5519ec470fbc023b88.tar.xz
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
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r--fpdfsdk/src/fpdfview_embeddertest.cpp1
1 files changed, 1 insertions, 0 deletions
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) {