Unify node deletion

This commit is contained in:
Dmitry-Me 2016-08-10 17:30:02 +03:00
parent 75c8f40640
commit 4de7abb573
1 changed files with 1 additions and 1 deletions

View File

@ -991,7 +991,7 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEnd )
// Set error, if document already has children.
if ( !_document->NoChildren() ) {
_document->SetError( XML_ERROR_PARSING_DECLARATION, decl->Value(), 0);
DeleteNode( decl );
DeleteNode( node );
break;
}
}