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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 6 12:10:55 UTC 2019


 vcl/unx/gtk3/gtk3gtksalmenu.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit dcd12b88ecb04766850159043b304cdf965924c1
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Nov 6 10:32:15 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Nov 6 13:09:32 2019 +0100

    set mpCloseButton to null after it is destroyed
    
    Change-Id: If1a0bec30d2bcfdf6846712a67efbe2dcfbbec5c
    Reviewed-on: https://gerrit.libreoffice.org/82133
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtksalmenu.cxx b/vcl/unx/gtk3/gtk3gtksalmenu.cxx
index 6602534f5882..301322d8c78d 100644
--- a/vcl/unx/gtk3/gtk3gtksalmenu.cxx
+++ b/vcl/unx/gtk3/gtk3gtksalmenu.cxx
@@ -641,7 +641,10 @@ void GtkSalMenu::ShowCloseButton(bool bShow)
     if (!bShow)
     {
         if (mpCloseButton)
+        {
             gtk_widget_destroy(mpCloseButton);
+            mpCloseButton = nullptr;
+        }
         return;
     }
 


More information about the Libreoffice-commits mailing list