summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/thesdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/dialogs/thesdlg.cxx')
-rw-r--r--cui/source/dialogs/thesdlg.cxx39
1 files changed, 39 insertions, 0 deletions
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx
index c0afe2a2c430..8a47ac55a292 100644
--- a/cui/source/dialogs/thesdlg.cxx
+++ b/cui/source/dialogs/thesdlg.cxx
@@ -66,6 +66,17 @@ LookUpComboBox::LookUpComboBox(vcl::Window *pParent)
EnableAutocomplete( false );
}
+LookUpComboBox::~LookUpComboBox()
+{
+ dispose();
+}
+
+void LookUpComboBox::dispose()
+{
+ m_pDialog.clear();
+ ComboBox::dispose();
+}
+
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeLookUpComboBox(vcl::Window *pParent, VclBuilder::stringmap &)
{
return new LookUpComboBox(pParent);
@@ -96,6 +107,18 @@ ReplaceEdit::ReplaceEdit(vcl::Window *pParent)
{
}
+ReplaceEdit::~ReplaceEdit()
+{
+ dispose();
+}
+
+void ReplaceEdit::dispose()
+{
+ m_pBtn.clear();
+ Edit::dispose();
+}
+
+
extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeReplaceEdit(vcl::Window *pParent, VclBuilder::stringmap &)
{
return new ReplaceEdit(pParent);
@@ -176,6 +199,7 @@ ThesaurusAlternativesCtrl::~ThesaurusAlternativesCtrl()
void ThesaurusAlternativesCtrl::dispose()
{
ClearExtraData();
+ m_pDialog.clear();
SvxCheckListBox::dispose();
}
@@ -514,6 +538,21 @@ SvxThesaurusDialog::SvxThesaurusDialog(
Enable( false );
}
+SvxThesaurusDialog::~SvxThesaurusDialog()
+{
+ dispose();
+}
+
+void SvxThesaurusDialog::dispose()
+{
+ m_pLeftBtn.clear();
+ m_pWordCB.clear();
+ m_pAlternativesCT.clear();
+ m_pReplaceEdit.clear();
+ m_pLangLB.clear();
+ SvxStandardDialog::dispose();
+}
+
IMPL_LINK( SvxThesaurusDialog, ReplaceBtnHdl_Impl, Button *, EMPTYARG /*pBtn*/ )
{
EndDialog(RET_OK);