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

release-1.5.4.branch
Vreixo Formoso 15 years ago
parent 0c03ad051b
commit c587c79220
  1. 1
      src/node.c

@ -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…
Cancel
Save