From 0b4dfd6cffe380f45a64034744415477c23b132a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 21 Feb 2013 03:07:19 +0200 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- divelist.c | 2 ++ 1 file changed, 2 insertions(+) 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)