summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/notebook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 0b53f1c..f646b1a 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -427,6 +427,10 @@ mq_notebook_remove_page(MqNotebook *notebook, MqTabPage *page)
mq_tree_position(notebook->found_node) - 1);
mq_tree_remove_allocated(MQ_TREE(notebook->found_node));
+
+ mq_tree_foreach_from(MQ_TREE(notebook->found_node), update_position,
+ NULL);
+
g_free(notebook->found_node);
}