Ensure parent is set to NULL on children of a deleted directory.
This commit is contained in:
parent
0c03ad051b
commit
c587c79220
@ -36,6 +36,7 @@ void iso_node_unref(IsoNode *node)
|
||||
IsoNode *child = ((IsoDir*)node)->children;
|
||||
while (child != NULL) {
|
||||
IsoNode *tmp = child->next;
|
||||
child->parent = NULL;
|
||||
iso_node_unref(child);
|
||||
child = tmp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user