diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-02-21 03:07:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-20 17:20:22 -0800 |
commit | 0b4dfd6cffe380f45a64034744415477c23b132a (patch) | |
tree | e01e1b89062256733c488d53dbf4fb3fcd3aee6f /divelist.c | |
parent | 9a5818e92cee4c2052e4c44d8e9cec9dd5cd5f5c (diff) | |
download | subsurface-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.c | 2 |
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) |