diff options
Diffstat (limited to 'svtools/source/dialogs/restartdialog.cxx')
-rw-r--r-- | svtools/source/dialogs/restartdialog.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/svtools/source/dialogs/restartdialog.cxx b/svtools/source/dialogs/restartdialog.cxx index d116d9b1bfc2..1e99d16c3d36 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() { disposeOnce(); } + 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) { |