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:
@@ -245,14 +245,17 @@ static void ProcessPlatformProperty(wxXmlNode *node)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isok)
|
if (isok)
|
||||||
|
{
|
||||||
ProcessPlatformProperty(c);
|
ProcessPlatformProperty(c);
|
||||||
|
c = c->GetNext();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
node->RemoveChild(c);
|
node->RemoveChild(c);
|
||||||
|
wxXmlNode *c2 = c->GetNext();
|
||||||
delete c;
|
delete c;
|
||||||
|
c = c2;
|
||||||
}
|
}
|
||||||
|
|
||||||
c = c->GetNext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -245,14 +245,17 @@ static void ProcessPlatformProperty(wxXmlNode *node)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isok)
|
if (isok)
|
||||||
|
{
|
||||||
ProcessPlatformProperty(c);
|
ProcessPlatformProperty(c);
|
||||||
|
c = c->GetNext();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
node->RemoveChild(c);
|
node->RemoveChild(c);
|
||||||
|
wxXmlNode *c2 = c->GetNext();
|
||||||
delete c;
|
delete c;
|
||||||
|
c = c2;
|
||||||
}
|
}
|
||||||
|
|
||||||
c = c->GetNext();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user