vcl/unx/gtk3/gtksalmenu.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit b29532799e0b67698264e26e06dd00712fcf9192
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Dec 15 14:58:49 2021 +0000
Commit: Caolán McNamara <[email protected]>
CommitDate: Wed Dec 15 17:12:04 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/+/126877
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
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;
}