summaryrefslogtreecommitdiff
path: root/fpdfsdk/fsdk_mgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/fsdk_mgr.cpp')
-rw-r--r--fpdfsdk/fsdk_mgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdfsdk/fsdk_mgr.cpp b/fpdfsdk/fsdk_mgr.cpp
index 3f957c7f3f..e4ceadc43c 100644
--- a/fpdfsdk/fsdk_mgr.cpp
+++ b/fpdfsdk/fsdk_mgr.cpp
@@ -51,6 +51,8 @@ CPDFDoc_Environment::~CPDFDoc_Environment() {
if (pProvider->m_pEnvList.GetSize() == 0)
pProvider->SetJavaScriptInitialized(FALSE);
#endif // PDF_ENABLE_XFA
+ if (m_pInfo && m_pInfo->Release)
+ m_pInfo->Release(m_pInfo);
}
int CPDFDoc_Environment::JS_appAlert(const FX_WCHAR* Msg,