diff options
Diffstat (limited to 'fpdfsdk/src/javascript/global.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/global.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp index cddc919f75..6eea290f68 100644 --- a/fpdfsdk/src/javascript/global.cpp +++ b/fpdfsdk/src/javascript/global.cpp @@ -117,24 +117,14 @@ global_alternate::global_alternate(CJS_Object* pJSObject) global_alternate::~global_alternate(void) { - ASSERT(m_pApp != NULL); - -// CommitGlobalPersisitentVariables(); DestroyGlobalPersisitentVariables(); - - CJS_RuntimeFactory* pFactory = m_pApp->m_pJSRuntimeFactory; - ASSERT(pFactory); - - pFactory->ReleaseGlobalData(); + m_pApp->GetRuntimeFactory()->ReleaseGlobalData(); } void global_alternate::Initial(CPDFDoc_Environment* pApp) { m_pApp = pApp; - - CJS_RuntimeFactory* pFactory = pApp->m_pJSRuntimeFactory; - ASSERT(pFactory); - m_pGlobalData = pFactory->NewGlobalData(pApp); + m_pGlobalData = pApp->GetRuntimeFactory()->NewGlobalData(pApp); UpdateGlobalPersistentVariables(); } |