fixed my favorite bug (delete foo; call foo->Something())

and non-recursive destructors as an add-on :)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-08-29 18:31:40 +00:00
parent c556f19843
commit d7b1d73c92
2 changed files with 10 additions and 4 deletions

View File

@ -245,14 +245,17 @@ static void ProcessPlatformProperty(wxXmlNode *node)
}
if (isok)
{
ProcessPlatformProperty(c);
c = c->GetNext();
}
else
{
node->RemoveChild(c);
wxXmlNode *c2 = c->GetNext();
delete c;
c = c2;
}
c = c->GetNext();
}
}

View File

@ -245,14 +245,17 @@ static void ProcessPlatformProperty(wxXmlNode *node)
}
if (isok)
{
ProcessPlatformProperty(c);
c = c->GetNext();
}
else
{
node->RemoveChild(c);
wxXmlNode *c2 = c->GetNext();
delete c;
c = c2;
}
c = c->GetNext();
}
}