mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-31 00:13:01 +08:00
Make sure remove_node fully detaches the node
Right now remove_node is only used in contexts where parent is reset after removing but this might be important in the future.
This commit is contained in:
parent
c579d99649
commit
6d048deba8
@ -711,6 +711,7 @@ PUGI__NS_BEGIN
|
||||
else
|
||||
parent->first_child = node->next_sibling;
|
||||
|
||||
node->parent = 0;
|
||||
node->prev_sibling_c = 0;
|
||||
node->next_sibling = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user