summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notebook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notebook.c b/src/notebook.c
index f646b1a..b4e2864 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -423,14 +423,14 @@ mq_notebook_remove_page(MqNotebook *notebook, MqTabPage *page)
{
find_node(notebook, page);
- gtk_notebook_remove_page(GTK_NOTEBOOK(notebook),
- 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);
+ gtk_notebook_remove_page(GTK_NOTEBOOK(notebook),
+ mq_tree_position(notebook->found_node));
+
g_free(notebook->found_node);
}