1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-21 19:23:00 +04:00

Merge branch 'master' of github.com:IMBIGFISH4/xml2 into IMBIGFISH4-master

This commit is contained in:
Lee Thomason
2026-05-23 16:02:58 -07:00
+8 -1
View File
@@ -834,7 +834,14 @@ XMLNode::XMLNode( XMLDocument* doc ) :
XMLNode::~XMLNode()
{
DeleteChildren();
XMLNode *currentChild = _firstChild;
while (currentChild != NULL) {
XMLNode *next = currentChild->_next;
currentChild->_parent = 0;
DeleteNode(currentChild);
currentChild = next;
}
if ( _parent ) {
_parent->Unlink( this );
}