Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp |
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 e00887ff5f335f17c5c473e2cdb8a9b3db070b97..882a915edd8140c33d9f0eb5a86793a9ae4d75f5 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); |
} |