Fix crash when deleting directories
svn path=/trunk/netsurf/; revision=2533
This commit is contained in:
parent
037fb6d91d
commit
691087a534
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue