X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78d14f80e9a72041ede52c30d912ec5cef21b1b3..65d48d095fb1390edd46f682c864320d7b9626e3:/contrib/src/xrc/xml.cpp?ds=sidebyside diff --git a/contrib/src/xrc/xml.cpp b/contrib/src/xrc/xml.cpp index d6ba14d820..5639d48a26 100644 --- a/contrib/src/xrc/xml.cpp +++ b/contrib/src/xrc/xml.cpp @@ -71,6 +71,25 @@ wxXmlNode::wxXmlNode(const wxXmlNode& node) +wxXmlNode::~wxXmlNode() +{ + wxXmlNode *c, *c2; + for (c = m_children; c; c = c2) + { + c2 = c->m_next; + delete c; + } + + wxXmlProperty *p, *p2; + for (p = m_properties; p; p = p2) + { + p2 = p->GetNext(); + delete p; + } +} + + + wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node) { delete m_properties;