X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78d14f80e9a72041ede52c30d912ec5cef21b1b3..d728116a27b358e5b002337d96268fb51be128eb:/src/xrc/xml.cpp diff --git a/src/xrc/xml.cpp b/src/xrc/xml.cpp index d6ba14d820..5639d48a26 100644 --- a/src/xrc/xml.cpp +++ b/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;