summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tree.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 2e0e875..c54b13b 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -207,7 +207,10 @@ mq_tree_remove_allocated(MqTree *node)
for (child = node->first_child; child; child = child->next) {
child->parent = node->parent;
}
-
+
+ /* Don't waste time updating children's positions. */
+ node->first_child = NULL;
+
update_positions(node, -1);
update_sizes(node, -1);