Index: fpdfsdk/src/javascript/JS_Runtime.cpp |
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp |
index 34a18dc385b12018b20b1fcbe548204b731ee239..74d9a44a1c5a2b5672268cc8d57afd27b8709dc9 100644 |
--- a/fpdfsdk/src/javascript/JS_Runtime.cpp |
+++ b/fpdfsdk/src/javascript/JS_Runtime.cpp |
@@ -64,7 +64,7 @@ CJS_Runtime::CJS_Runtime(CPDFDoc_Environment* pApp) |
DefineJSObjects(); |
CJS_Context* pContext = (CJS_Context*)NewContext(); |
- FXJS_InitializeRuntime(GetIsolate(), this, m_context); |
+ FXJS_InitializeRuntime(GetIsolate(), this, &m_context, &m_StaticObjects); |
ReleaseContext(pContext); |
} |
@@ -76,7 +76,7 @@ CJS_Runtime::~CJS_Runtime() { |
delete m_ContextArray.GetAt(i); |
m_ContextArray.RemoveAll(); |
- FXJS_ReleaseRuntime(GetIsolate(), m_context); |
+ FXJS_ReleaseRuntime(GetIsolate(), &m_context, &m_StaticObjects); |
m_pApp = NULL; |
m_pDocument = NULL; |