summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/sortkeydlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/sortkeydlg.cxx')
-rw-r--r--sc/source/ui/dbgui/sortkeydlg.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/sortkeydlg.cxx b/sc/source/ui/dbgui/sortkeydlg.cxx
index e0518cd06d7f..6ffbf109b1ea 100644
--- a/sc/source/ui/dbgui/sortkeydlg.cxx
+++ b/sc/source/ui/dbgui/sortkeydlg.cxx
@@ -52,6 +52,12 @@ ScSortKeyWindow::ScSortKeyWindow(SfxTabPage* pParent, ScSortKeyItems& rSortKeyIt
ScSortKeyWindow::~ScSortKeyWindow()
{
+ dispose();
+}
+
+void ScSortKeyWindow::dispose()
+{
+ m_pBox.disposeAndClear();
mrSortKeyItems.clear();
}
@@ -89,6 +95,11 @@ ScSortKeyCtrl::ScSortKeyCtrl(SfxTabPage* pParent, ScSortKeyItems& rItems)
m_rVertScroll.SetScrollHdl( aScrollLink );
}
+void ScSortKeyCtrl::dispose()
+{
+ m_aSortWin.dispose();
+}
+
void ScSortKeyCtrl::checkAutoVScroll()
{
WinBits nBits = m_rScrolledWindow.GetStyle();