Merge pull request #465 from Dmitry-Me/unifyNodeDeletion

Unify node deletion
This commit is contained in:
Lee Thomason
2016-08-11 07:33:53 -07:00
committed by GitHub

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;
}
}