git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35979
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxRichTextObjectList::compatibility_iterator node = m_children.Find(child);
if (node)
{
wxRichTextObjectList::compatibility_iterator node = m_children.Find(child);
if (node)
{
+ wxRichTextObject* obj = node->GetData();
+ m_children.Erase(node);
- delete node->GetData();
- delete node;
child->Dereference(); // Only delete if reference count is zero
node = node->GetNext();
child->Dereference(); // Only delete if reference count is zero
node = node->GetNext();
+ m_children.Erase(oldNode);