mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
info.c: add a method to clear all GtkListStore allocations
Add a new method in info.c called info_widget_destroy(), which clears all GtkListStore instances. The method is exposed via display-gtk.h and called from gtk-gui.c:on_destroy(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0b4dfd6cff
commit
61698b9f55
3 changed files with 10 additions and 0 deletions
8
info.c
8
info.c
|
|
@ -1261,3 +1261,11 @@ GtkWidget *extended_dive_info_widget(void)
|
|||
notes = text_view(vbox, _("Notes"), READ_ONLY);
|
||||
return vbox;
|
||||
}
|
||||
|
||||
void info_widget_destroy(void)
|
||||
{
|
||||
g_object_unref(people_list);
|
||||
g_object_unref(location_list);
|
||||
g_object_unref(star_list);
|
||||
g_object_unref(suit_list);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue