mirror of https://github.com/AxioDL/tinyxml2.git
Unify node deletion
This commit is contained in:
parent
75c8f40640
commit
4de7abb573
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue