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
This commit is contained in:
Vadim Zeitlin
2013-08-13 17:36:47 +00:00
parent 3e5a70b5d7
commit 88e264616b

View File

@@ -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 )
{