summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc/corodlg.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/inc/corodlg.hxx')
-rw-r--r--sc/source/ui/inc/corodlg.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sc/source/ui/inc/corodlg.hxx b/sc/source/ui/inc/corodlg.hxx
index 1f6de3df6b05..dbc8dcc34f4f 100644
--- a/sc/source/ui/inc/corodlg.hxx
+++ b/sc/source/ui/inc/corodlg.hxx
@@ -37,13 +37,20 @@ public:
m_pBtnCol->Check(bCol);
m_pBtnRow->Check(bRow);
}
+ virtual ~ScColRowLabelDlg() { disposeOnce(); }
+ virtual void dispose() SAL_OVERRIDE
+ {
+ m_pBtnRow.clear();
+ m_pBtnCol.clear();
+ ModalDialog::dispose();
+ }
bool IsCol() const { return m_pBtnCol->IsChecked(); }
bool IsRow() const { return m_pBtnRow->IsChecked(); }
private:
- CheckBox* m_pBtnRow;
- CheckBox* m_pBtnCol;
+ VclPtr<CheckBox> m_pBtnRow;
+ VclPtr<CheckBox> m_pBtnCol;
};
#endif