some really minor changes (the most important one: small memory hole in
wxList plugged) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,6 +120,11 @@ wxNodeBase::~wxNodeBase()
|
||||
// compatibility with old code
|
||||
if ( m_list != NULL )
|
||||
{
|
||||
if ( m_list->m_keyType == wxKEY_STRING )
|
||||
{
|
||||
free(m_key.string);
|
||||
}
|
||||
|
||||
m_list->DetachNode(this);
|
||||
}
|
||||
}
|
||||
@@ -348,6 +353,8 @@ void wxListBase::DoDeleteNode(wxNodeBase *node)
|
||||
node->DeleteData();
|
||||
}
|
||||
|
||||
// so that the node knows that it's being deleted by the list
|
||||
node->m_list = NULL;
|
||||
delete node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user