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:
parent
9a5818e92c
commit
0b4dfd6cff
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user