From 691087a5344bc3b54ba4b3f13ea2874acb44d5eb Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 15 Apr 2006 18:52:06 +0000 Subject: [PATCH] Fix crash when deleting directories svn path=/trunk/netsurf/; revision=2533 --- desktop/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/tree.c b/desktop/tree.c index 5dd0617b7..b278be8df 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -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);