summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r--samples/pdfium_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 7651205738..f244d8a440 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;