From 88e264616b10eab9d3271162044bd866ee60a4f3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 13 Aug 2013 17:36:47 +0000 Subject: [PATCH] Don't hide the window in its dtor in wxGTK. This results in sending an unexpected wxShowEvent to an already half-destroyed (because the derived class dtor had been already executed) by now object which could provoke crashes. And it also seems to be completely unnecessary as the window is going to be destroyed anyhow -- and the other ports don't hide it before this happens (unless it's a TLW in which case it is already hidden in wxTopLevelWindowBase::Destroy()). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d535b23..0be16df 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2423,9 +2423,6 @@ wxWindowGTK::~wxWindowGTK() // destroy children before destroying this window itself DestroyChildren(); - if (m_widget) - Show( false ); - // delete before the widgets to avoid a crash on solaris if ( m_imContext ) { -- 2.7.4