fixed crash when closing window that contains STC (patch 1017268)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-09-18 12:09:12 +00:00
parent 6d20f7ae50
commit 8b573fb839

View File

@@ -742,6 +742,9 @@ wxWindowMac::~wxWindowMac()
}
#endif // __WXUNIVERSAL__
// destroy children before destroying this window itself
DestroyChildren();
// wxRemoveMacControlAssociation( this ) ;
// If we delete an item, we should initialize the parent panel,
// because it could now be invalid.
@@ -772,8 +775,6 @@ wxWindowMac::~wxWindowMac()
frame->SetLastFocus( NULL ) ;
}
DestroyChildren();
// delete our drop target if we've got one
#if wxUSE_DRAG_AND_DROP
if ( m_dropTarget != NULL )