diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fsdk_mgr.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_mgr.h | 8 |
2 files changed, 2 insertions, 8 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, diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index cd89a925ab..ca46a069f1 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -40,14 +40,6 @@ class CPDFDoc_Environment final { CPDFDoc_Environment(UnderlyingDocumentType* pDoc, FPDF_FORMFILLINFO* pFFinfo); ~CPDFDoc_Environment(); -#ifdef PDF_ENABLE_XFA - void Release() { - if (m_pInfo && m_pInfo->Release) - m_pInfo->Release(m_pInfo); - delete this; - } -#endif // PDF_ENABLE_XFA - void FFI_Invalidate(FPDF_PAGE page, double left, double top, |