Index: fpdfsdk/javascript/cjs_runtime.cpp |
diff --git a/fpdfsdk/javascript/cjs_runtime.cpp b/fpdfsdk/javascript/cjs_runtime.cpp |
index 2bcdc2293b857fb7f7717546c7393182dc0137be..88530f733251f93063d04386e20930c1a154f9a6 100644 |
--- a/fpdfsdk/javascript/cjs_runtime.cpp |
+++ b/fpdfsdk/javascript/cjs_runtime.cpp |
@@ -40,6 +40,11 @@ void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { |
} |
// static |
+void IJS_Runtime::Destroy() { |
+ FXJS_Release(); |
+} |
+ |
+// static |
IJS_Runtime* IJS_Runtime::Create(CPDFDoc_Environment* pEnv) { |
return new CJS_Runtime(pEnv); |
} |