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:
@@ -174,15 +174,8 @@ wxWindowMac::~wxWindowMac()
|
||||
gFocusWindow = NULL ;
|
||||
}
|
||||
|
||||
// CS: copied from MSW :
|
||||
// VS: destroy children first and _then_ detach *this from its parent.
|
||||
// If we'd do it the other way around, children wouldn't be able
|
||||
// find their parent frame (see above).
|
||||
DestroyChildren();
|
||||
|
||||
if ( m_parent )
|
||||
m_parent->RemoveChild(this);
|
||||
|
||||
// delete our drop target if we've got one
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
if ( m_dropTarget != NULL )
|
||||
|
Reference in New Issue
Block a user