summaryrefslogtreecommitdiff
path: root/svtools/source/dialogs/restartdialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/dialogs/restartdialog.cxx')
-rw-r--r--svtools/source/dialogs/restartdialog.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/svtools/source/dialogs/restartdialog.cxx b/svtools/source/dialogs/restartdialog.cxx
index d116d9b1bfc2..282553b606c5 100644
--- a/svtools/source/dialogs/restartdialog.cxx
+++ b/svtools/source/dialogs/restartdialog.cxx
@@ -47,14 +47,21 @@ public:
btnYes_->SetClickHdl(LINK(this, RestartDialog, hdlYes));
btnNo_->SetClickHdl(LINK(this, RestartDialog, hdlNo));
}
-
+ virtual ~RestartDialog() { dispose(); }
+ virtual void dispose() SAL_OVERRIDE
+ {
+ reason_.clear();
+ btnYes_.clear();
+ btnNo_.clear();
+ ModalDialog::dispose();
+ }
private:
DECL_LINK(hdlYes, void *);
DECL_LINK(hdlNo, void *);
- vcl::Window * reason_;
- PushButton * btnYes_;
- PushButton * btnNo_;
+ VclPtr<vcl::Window> reason_;
+ VclPtr<PushButton> btnYes_;
+ VclPtr<PushButton> btnNo_;
};
IMPL_LINK_NOARG(RestartDialog, hdlYes) {