address feedback from review
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 9855dcf..3182c5a 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -797,13 +797,13 @@
 

     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;

 }