From 8a763619ac5fe8d881c19c0b973ff7d24b1570fe Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Fri, 16 Jun 2017 09:30:16 -0700 Subject: [PATCH] fix incorrect factoring --- tinyxml2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 772d2ae..603be82 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -809,12 +809,12 @@ 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->_next = 0; + child->_prev = 0; child->_parent = 0; }