Sfoglia il codice sorgente

Merge pull request #407 from JarleStrand/fix-deletechild

Error fix DeleteChild
Lee Thomason 10 anni fa
parent
commit
9ff6654174
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      tinyxml2.cpp

+ 1 - 0
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 );
 }