summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tree.c b/src/tree.c
index 9d547b3..61db6f6 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -222,10 +222,7 @@ 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);