AVLTreeBase: Clear node's pointers after removal.
To be safe, in case something tries to double-remove.
This commit is contained in:
@@ -576,6 +576,7 @@ AVLTreeBase::_Remove(AVLTreeNode* node)
|
||||
*nodeP = NULL;
|
||||
}
|
||||
|
||||
node->parent = node->left = node->right = NULL;
|
||||
fNodeCount--;
|
||||
|
||||
// do the balancing
|
||||
|
||||
Reference in New Issue
Block a user