Ensure parent is set to NULL on children of a deleted directory.

This commit is contained in:
Vreixo Formoso 2007-12-02 19:02:56 +01:00
parent 0c03ad051b
commit c587c79220

View File

@ -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;
}