summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-09-29 20:13:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-09-29 20:13:16 +0200
commitebf5a786cadfc562ed9ec05ca9fd751068868d89 (patch)
tree64c1f344e819c1387f1aa40dfea6eef67516d775 /vcl/source/window
parenta8f206d9e888c5339bd5f98961c1a460dab5504d (diff)
loplugin:vclwidgets
"VclReferenceBase subclass dispose() function MUST call dispose() of its superclass as the last thing it does" Change-Id: Iab326014d3de805f68729f6d2912f7e960368f11
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/dialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 07ceaaa4ceda..30ba461b7e60 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -580,7 +580,6 @@ void Dialog::dispose()
mpPrevExecuteDlg.clear();
mpActionArea.clear();
mpContentArea.clear();
- SystemWindow::dispose();
css::uno::Reference< css::uno::XComponentContext > xContext(
comphelper::getProcessComponentContext() );
@@ -588,6 +587,8 @@ void Dialog::dispose()
css::document::DocumentEvent aObject;
aObject.EventName = "DialogClosed";
xEventBroadcaster->documentEventOccured(aObject);
+
+ SystemWindow::dispose();
}
IMPL_LINK_NOARG_TYPED(Dialog, ImplAsyncCloseHdl, void*, void)