diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 510fc82..c4ea7cd 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -776,6 +776,7 @@ void XMLNode::DeleteChild( XMLNode* node ) TIXMLASSERT( node ); TIXMLASSERT( node->_document == _document ); TIXMLASSERT( node->_parent == this ); + Unlink( node ); DeleteNode( node ); }