address feedback from review

This commit is contained in:
Lee Thomason
2017-06-14 15:02:38 -07:00
parent 816d3fa0cd
commit b754ddf0fb
3 changed files with 20 additions and 4 deletions

View File

@@ -797,13 +797,13 @@ void XMLNode::Unlink( XMLNode* child )
if ( child->_prev ) {
child->_prev->_next = child->_next;
child->_prev = 0;
}
if ( child->_next ) {
child->_next->_prev = child->_prev;
child->_next = 0;
}
child->_parent = 0;
child->_next = 0;
child->_prev = 0;
}