diff options
author | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:13:25 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-05-15 15:13:25 -0700 |
commit | 61ffad8df484ab9b3f7d2f5519ec470fbc023b88 (patch) | |
tree | 0bc082f49a3961df5138928ee84f4a47eb1de4c7 /core | |
parent | 9f6f34892fdfff87c49a9df4c1e34790c0fa1272 (diff) | |
download | pdfium-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 'core')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp index e00887ff5f..882a915edd 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp @@ -16,5 +16,7 @@ TEST_F(FPDFParserEmbeddertest, LoadError_454695) { TEST_F(FPDFParserEmbeddertest, Bug_481363) { // Test colorspace object with malformed dictionary. EXPECT_TRUE(OpenDocument("testing/resources/bug_481363.pdf")); - EXPECT_NE(nullptr, LoadPage(0)); + FPDF_PAGE page = LoadPage(0); + EXPECT_NE(nullptr, page); + UnloadPage(page); } |