Index: fpdfsdk/src/fsdk_mgr.cpp |
diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp |
index a3e77e45148c83e37ede9f4a348d8394cce97fe9..346dacce59c054e0ad26a1827754c72001e86bc3 100644 |
--- a/fpdfsdk/src/fsdk_mgr.cpp |
+++ b/fpdfsdk/src/fsdk_mgr.cpp |
@@ -222,10 +222,8 @@ CPDFDoc_Environment::~CPDFDoc_Environment() { |
m_pIFormFiller = NULL; |
CPDFXFA_App* pProvider = CPDFXFA_App::GetInstance(); |
- if (pProvider->m_pEnvList.GetSize() == 0) { |
- pProvider->ReleaseRuntime(); |
- pProvider->InitRuntime(TRUE); |
- } |
+ if (pProvider->m_pEnvList.GetSize() == 0) |
+ pProvider->SetJavaScriptInitialized(FALSE); |
delete m_pSysHandler; |
m_pSysHandler = NULL; |