From ebf5a786cadfc562ed9ec05ca9fd751068868d89 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 29 Sep 2016 20:13:16 +0200 Subject: loplugin:vclwidgets "VclReferenceBase subclass dispose() function MUST call dispose() of its superclass as the last thing it does" Change-Id: Iab326014d3de805f68729f6d2912f7e960368f11 --- vcl/source/window/dialog.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit