call RemoveChild() in ~wxWindowBase instead of doing it in each ~wxWindow for each port
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -374,9 +374,6 @@ wxWindow::~wxWindow()
|
||||
DetachWidget(wMain);
|
||||
}
|
||||
|
||||
if ( m_parent )
|
||||
m_parent->RemoveChild( this );
|
||||
|
||||
// If m_drawingArea, we're a fully-fledged window with drawing area,
|
||||
// scrollbars etc. (what wxCanvas used to be)
|
||||
if ( m_drawingArea )
|
||||
|
Reference in New Issue
Block a user