mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #465 from Dmitry-Me/unifyNodeDeletion
Unify node deletion
This commit is contained in:
commit
9faf14df53
|
@ -991,7 +991,7 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEnd )
|
||||||
// Set error, if document already has children.
|
// Set error, if document already has children.
|
||||||
if ( !_document->NoChildren() ) {
|
if ( !_document->NoChildren() ) {
|
||||||
_document->SetError( XML_ERROR_PARSING_DECLARATION, decl->Value(), 0);
|
_document->SetError( XML_ERROR_PARSING_DECLARATION, decl->Value(), 0);
|
||||||
DeleteNode( decl );
|
DeleteNode( node );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue