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;
|
IsoNode *child = ((IsoDir*)node)->children;
|
||||||
while (child != NULL) {
|
while (child != NULL) {
|
||||||
IsoNode *tmp = child->next;
|
IsoNode *tmp = child->next;
|
||||||
|
child->parent = NULL;
|
||||||
iso_node_unref(child);
|
iso_node_unref(child);
|
||||||
child = tmp;
|
child = tmp;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user