]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xml.cpp
compilation warning fix
[wxWidgets.git] / src / xrc / xml.cpp
index d6ba14d820a58083a769f45acbdae91f3d6961fd..5639d48a26f216c29c13df208a11e1733004328b 100644 (file)
@@ -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;
 wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node)
 {
     delete m_properties;