summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-02-21 03:07:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-20 17:20:22 -0800
commit0b4dfd6cffe380f45a64034744415477c23b132a (patch)
treee01e1b89062256733c488d53dbf4fb3fcd3aee6f /divelist.c
parent9a5818e92cee4c2052e4c44d8e9cec9dd5cd5f5c (diff)
downloadsubsurface-0b4dfd6cffe380f45a64034744415477c23b132a.tar.gz
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>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/divelist.c b/divelist.c
index 75d525ea2..85fb535ed 100644
--- a/divelist.c
+++ b/divelist.c
@@ -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)