git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44270
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Added support for the wxFRAME_FLOAT_ON_PARENT style
- Added support for the wxFRAME_FLOAT_ON_PARENT style
+wxX11:
+
+- Don't crash in wxWindow dtor if the window hadn't been really Create()d
+
- Window xwindow = (Window) m_mainWindow;
- wxDeleteWindowFromTable( xwindow );
- XDestroyWindow( wxGlobalDisplay(), xwindow );
- m_mainWindow = NULL;
+ if ( m_mainWindow )
+ {
+ Window xwindow = (Window) m_mainWindow;
+ wxDeleteWindowFromTable( xwindow );
+ XDestroyWindow( wxGlobalDisplay(), xwindow );
+ m_mainWindow = NULL;
+ }
}
// ---------------------------------------------------------------------------
}
// ---------------------------------------------------------------------------