fix double-free

This commit is contained in:
Glenn Maynard
2006-10-04 23:06:46 +00:00
parent 4acc41f47c
commit db335a813f
+3 -2
View File
@@ -14,9 +14,10 @@
#include "Foreach.h"
XNode::XNode( const XNode &cpy ):
m_Value( cpy.m_Value ),
m_attrs( cpy.m_attrs )
m_Value( cpy.m_Value )
{
FOREACH_CONST_Attr( &cpy, pAttr )
this->AppendAttr( pAttr->first, new XNodeValue(*pAttr->second) );
FOREACH_CONST_Child( &cpy, c )
this->AppendChild( new XNode(*c) );
}