Unref the two GtkTreeStore instances when destroying the divelist

Even if these exists for the heap lifespan, we can call:
g_object_unref(dive_list.treemodel);
g_object_unref(dive_list.listmodel);

in divelist.c:dive_list_destroy()

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2013-02-21 03:07:19 +02:00 committed by Dirk Hohndel
parent 9a5818e92c
commit 0b4dfd6cff

View file

@ -2628,6 +2628,8 @@ GtkWidget *dive_list_create(void)
void dive_list_destroy(void)
{
gtk_widget_destroy(dive_list.tree_view);
g_object_unref(dive_list.treemodel);
g_object_unref(dive_list.listmodel);
}
void mark_divelist_changed(int changed)