[Libreoffice-commits] core.git: vcl/source

Stephan Bergmann sbergman at redhat.com
Thu Nov 12 03:13:20 PST 2015


 vcl/source/control/button.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 910c31ab55a90c87e9e16ded734fec396660e331
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Nov 12 12:12:18 2015 +0100

    loplugin:vclwidgets
    
    "OutputDevice subclass dispose() function MUST call dispose() of its superclass
    as the last thing it does"
    
    Change-Id: I3f0977cc031edef61b24eb316790de32a24ccbcf

diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 153c706..b3390a3 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -107,9 +107,9 @@ Button::~Button()
 
 void Button::dispose()
 {
-    Control::dispose();
     if (mpButtonData->mpStatusListener.is())
         mpButtonData->mpStatusListener->dispose();
+    Control::dispose();
 }
 
 void Button::SetCommandHandler(const OUString& aCommand)


More information about the Libreoffice-commits mailing list