]> git.saurik.com Git - wxWidgets.git/commitdiff
forgot to commit some XRC files
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 3 Sep 2001 23:07:23 +0000 (23:07 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 3 Sep 2001 23:07:23 +0000 (23:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/xrc/xml.cpp
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;
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;