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

Merge remote-tracking branch 'origin/master' into leethomason/security-review

This commit is contained in:
Lee Thomason
2026-03-09 18:10:32 -07:00
+1 -2
View File
@@ -2351,11 +2351,10 @@ static FILE* callfopen( const char* filepath, const char* mode )
}
void XMLDocument::DeleteNode( XMLNode* node ) {
TIXMLASSERT( node );
TIXMLASSERT(node->_document == this );
if(node == 0) {
return; // check for null pointer
}
TIXMLASSERT(node->_document == this);
if (node->_parent) {
node->_parent->DeleteChild( node );
}