wxWindow split (MSW part of changes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -241,13 +241,12 @@ bool wxWindowBase::Close(bool force)
|
||||
bool wxWindowBase::DestroyChildren()
|
||||
{
|
||||
wxWindowList::Node *node;
|
||||
for ( node = m_children.GetFirst(); node; node = node->GetNext() )
|
||||
for ( node = GetChildren().GetFirst(); node; node = node->GetNext() )
|
||||
{
|
||||
wxWindow *child = node->GetData();
|
||||
if ( child )
|
||||
{
|
||||
delete child;
|
||||
delete node;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user