X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77b2f9b185e5643c009c8a294ee9819d3950c423..5d6c4365363f84bf587c7f5f916e5830ef8a11e3:/src/xrc/xmlres.cpp diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index c5f7a8c8ed..ef1e2f2761 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -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(); } }