summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/global.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-07-17 09:16:17 -0700
committerTom Sepez <tsepez@chromium.org>2015-07-17 09:16:17 -0700
commitdcbc02f15e767e7d427fe6346d415c48da53afe0 (patch)
tree0a751aeef7e5f21f702dc9bff05848883ea370ea /fpdfsdk/src/javascript/global.cpp
parentd44f1074fa672f1765c69945eb37157279154999 (diff)
downloadpdfium-dcbc02f15e767e7d427fe6346d415c48da53afe0.tar.xz
Merge to XFA: Tidy up CPDFDOC_Environment.
Original Review URL: https://codereview.chromium.org/1235393002 . (cherry picked from commit fb07e2843dad0774d5842c2b08e7792164efc14a) R=thestig@chromium.org Review URL: https://codereview.chromium.org/1244503002 .
Diffstat (limited to 'fpdfsdk/src/javascript/global.cpp')
-rw-r--r--fpdfsdk/src/javascript/global.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp
index e829d7fb19..52b79d3910 100644
--- a/fpdfsdk/src/javascript/global.cpp
+++ b/fpdfsdk/src/javascript/global.cpp
@@ -118,19 +118,14 @@ global_alternate::global_alternate(CJS_Object* pJSObject)
global_alternate::~global_alternate(void)
{
- ASSERT(m_pApp != NULL);
DestroyGlobalPersisitentVariables();
-
- CJS_RuntimeFactory* pFactory = CPDFXFA_App::GetInstance()->GetRuntimeFactory();
- pFactory->ReleaseGlobalData();
+ CPDFXFA_App::GetInstance()->GetRuntimeFactory()->ReleaseGlobalData();
}
void global_alternate::Initial(CPDFDoc_Environment* pApp)
{
m_pApp = pApp;
-
- CJS_RuntimeFactory* pFactory = CPDFXFA_App::GetInstance()->GetRuntimeFactory();
- m_pGlobalData = pFactory->NewGlobalData(pApp);
+ m_pGlobalData = CPDFXFA_App::GetInstance()->GetRuntimeFactory()->NewGlobalData(pApp);
UpdateGlobalPersistentVariables();
}