summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfview.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-06-28 07:39:09 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-28 07:39:09 -0700
commit2d6dda170d84564f6ca5845ea934a886ac9bf746 (patch)
treef4d16014099db0e232799cc336439b5bd5f583f5 /fpdfsdk/fpdfview.cpp
parentb21c6d0083e18077aa09b8cb1e4bb867dab2949e (diff)
downloadpdfium-2d6dda170d84564f6ca5845ea934a886ac9bf746.tar.xz
Implement IJS_Runtime::Destroy().
And call it from FPDF_DestroyLibrary(). Otherwise further attempts to FPDF_InitLibraryWithConfig() can hit fail an assertion in IJS_Runtime::Initialize(). BUG=604587 Review-Url: https://codereview.chromium.org/2103443004
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r--fpdfsdk/fpdfview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp
index 38d704d27e..646fb46f72 100644
--- a/fpdfsdk/fpdfview.cpp
+++ b/fpdfsdk/fpdfview.cpp
@@ -291,6 +291,8 @@ DLLEXPORT void STDCALL FPDF_DestroyLibrary() {
delete g_pCodecModule;
g_pCodecModule = nullptr;
+
+ IJS_Runtime::Destroy();
}
#ifndef _WIN32