vcl/unx/gtk/gtksalmenu.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 04db96d9f18daa1dcc2d2be0fed766e009f8f194
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Nov 6 10:32:15 2019 +0000
Commit: Michael Weghorn <[email protected]>
CommitDate: Fri Nov 8 17:29:39 2019 +0100
set mpCloseButton to null after it is destroyed
Change-Id: If1a0bec30d2bcfdf6846712a67efbe2dcfbbec5c
Reviewed-on: https://gerrit.libreoffice.org/82134
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <[email protected]>
diff --git a/vcl/unx/gtk/gtksalmenu.cxx b/vcl/unx/gtk/gtksalmenu.cxx
index 91946e09fd1c..785e4457026e 100644
--- a/vcl/unx/gtk/gtksalmenu.cxx
+++ b/vcl/unx/gtk/gtksalmenu.cxx
@@ -662,7 +662,10 @@ void GtkSalMenu::ShowCloseButton(bool bShow)
if (!bShow)
{
if (mpCloseButton)
+ {
gtk_widget_destroy(mpCloseButton);
+ mpCloseButton = nullptr;
+ }
return;
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits