diff options
author | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:36:02 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:36:02 -0700 |
commit | d27acae33ff902ee85ae4f8ec76d4f64c294637b (patch) | |
tree | 44506c7c78a15dfee730b2ff3e6e675e561b510a /fpdfsdk/src/fpdfview_embeddertest.cpp | |
parent | b6e5df2eded21ca142adf43b4f78a9027589bfeb (diff) | |
download | pdfium-d27acae33ff902ee85ae4f8ec76d4f64c294637b.tar.xz |
Merge to XFA: 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
(cherry picked from commit 61ffad8df484ab9b3f7d2f5519ec470fbc023b88)
Review URL: https://codereview.chromium.org/1138973004
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfview_embeddertest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp index 9dcfa08cf1..d58399a9b1 100644 --- a/fpdfsdk/src/fpdfview_embeddertest.cpp +++ b/fpdfsdk/src/fpdfview_embeddertest.cpp @@ -195,6 +195,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, Crasher_454695) { |