Fix crash when creating and quickly destroying a wxTLW in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Jun 2011 13:33:02 +0000 (13:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Jun 2011 13:33:02 +0000 (13:33 +0000)
commitc0866512a7c380363876eb0a0e3f8ad729552d09
treea4dbed5f9f72d145342bcac9ae469b4e682ea74b
parent8c636fd7896a9cb5c12244602e0ecfcd9362c058
Fix crash when creating and quickly destroying a wxTLW in wxGTK.

Don't crash in timer callback added to work around broken Ubuntu 11.04 WM,
remove it when the window is being destroyed.

This corrects a crash which happened if a TLW was created and destroyed before
this timer had time to fire under Ubuntu.

Closes #13146.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/toplevel.cpp