From: Vadim Zeitlin Date: Mon, 18 Apr 2011 23:36:42 +0000 (+0000) Subject: Don't assert when destroying a never created window in wxGTK. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4af2a59fbfce5b4ae0d51e96334121121fe8afaa Don't assert when destroying a never created window in wxGTK. The other ports don't assert if a default-constructed wxWindow object for which Create() had never been called is Destroy()d and wxGTK shouldn't do this neither. The new behaviour is more logical but also fixes a problem with an assert in wxOwnerDrawnComboBox that can currently be seen in wxGTK unit tests. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 39e2c7603b..4ac089ebcc 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2460,8 +2460,6 @@ void wxWindowGTK::ConnectWidget( GtkWidget *widget ) bool wxWindowGTK::Destroy() { - wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") ); - m_hasVMT = false; return wxWindowBase::Destroy();