mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue