From 93cd80d63c45b754387edac7bdb89e7342c70e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 3 Sep 2001 23:07:23 +0000 Subject: [PATCH] forgot to commit some XRC files git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/xrc/xml.cpp | 19 +++++++++++++++++++ src/xrc/xml.cpp | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) 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; 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;