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
commit 9faf14df53
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;
}
}