vcl/unx/gtk3/gtk3gtksalmenu.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit dcd12b88ecb04766850159043b304cdf965924c1 Author: Caolán McNamara <[email protected]> AuthorDate: Wed Nov 6 10:32:15 2019 +0000 Commit: Caolán McNamara <[email protected]> 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 <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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; } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
