vcl/unx/gtk3/gtksalmenu.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2dc2188c40282e85ecf9eb62321320251357f760
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Dec 15 14:58:49 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Dec 15 17:30:27 2021 +0100

    unset mpMenuBarWidget when it was destroyed along with its parent
    
    Resolves: https://github.com/flathub/org.libreoffice.LibreOffice/issues/173
    Change-Id: I875cf658fb86adfa389429ead059bfd7c4f08ef4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126866
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtksalmenu.cxx b/vcl/unx/gtk3/gtksalmenu.cxx
index e0a35c1d5404..ac71e3390d87 100644
--- a/vcl/unx/gtk3/gtksalmenu.cxx
+++ b/vcl/unx/gtk3/gtksalmenu.cxx
@@ -1116,6 +1116,7 @@ void GtkSalMenu::DestroyMenuBarWidget()
     g_clear_pointer(&mpMenuBarContainerWidget, gtk_widget_unparent);
 #endif
     mpMenuBarContainerWidget = nullptr;
+    mpMenuBarWidget = nullptr;
     mpCloseButton = nullptr;
 }
 

Reply via email to