Fix crash when deleting directories

svn path=/trunk/netsurf/; revision=2533
This commit is contained in:
John Mark Bell 2006-04-15 18:52:06 +00:00
parent 037fb6d91d
commit 691087a534
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ void tree_delete_node(struct tree *tree, struct node *node, bool siblings) {
} else {
node->deleted = true;
}
if (siblings)
if (siblings && next)
tree_delete_node(tree, next, true);
tree_recalculate_node_positions(tree->root);