| Index: samples/pdfium_test.cc
|
| diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
|
| index 7651205738d03033657f4efcc3fb695ce56eeb36..f244d8a44056976c31e4c9e4b0e1ddc1447a2da4 100644
|
| --- a/samples/pdfium_test.cc
|
| +++ b/samples/pdfium_test.cc
|
| @@ -882,6 +882,11 @@ int main(int argc, const char* argv[]) {
|
| #ifdef PDF_ENABLE_V8
|
| v8::V8::ShutdownPlatform();
|
| delete platform;
|
| +
|
| +#ifdef V8_USE_EXTERNAL_STARTUP_DATA
|
| + free(const_cast<char*>(natives.data));
|
| + free(const_cast<char*>(snapshot.data));
|
| +#endif // V8_USE_EXTERNAL_STARTUP_DATA
|
| #endif // PDF_ENABLE_V8
|
|
|
| return 0;
|
|
|