| Index: testing/embedder_test.cpp
|
| diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
|
| index 033313dbe24a0519350ef3650536cc042b67e727..3d3b2ad844832c0617e1b71b138c3abcb1ccb5e5 100644
|
| --- a/testing/embedder_test.cpp
|
| +++ b/testing/embedder_test.cpp
|
| @@ -58,7 +58,12 @@ EmbedderTest::EmbedderTest()
|
| #endif // FPDF_ENABLE_V8
|
| }
|
|
|
| -EmbedderTest::~EmbedderTest() {}
|
| +EmbedderTest::~EmbedderTest() {
|
| +#ifdef PDF_ENABLE_V8
|
| + v8::V8::ShutdownPlatform();
|
| + delete platform_;
|
| +#endif // PDF_ENABLE_V8
|
| +}
|
|
|
| void EmbedderTest::SetUp() {
|
| FPDF_LIBRARY_CONFIG config;
|
| @@ -93,11 +98,6 @@ void EmbedderTest::TearDown() {
|
| FPDFAvail_Destroy(avail_);
|
| FPDF_DestroyLibrary();
|
|
|
| -#ifdef PDF_ENABLE_V8
|
| - v8::V8::ShutdownPlatform();
|
| - delete platform_;
|
| -#endif // PDF_ENABLE_V8
|
| -
|
| delete loader_;
|
| }
|
|
|
|
|