summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-02-21 03:07:20 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-20 17:20:52 -0800
commit61698b9f55514a2a2f1dcb5f89bb4fd69c019f4b (patch)
tree999f1c73c2131f98c4e2eab727928e5abf6ad5d2 /info.c
parent0b4dfd6cffe380f45a64034744415477c23b132a (diff)
downloadsubsurface-61698b9f55514a2a2f1dcb5f89bb4fd69c019f4b.tar.gz
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>
Diffstat (limited to 'info.c')
-rw-r--r--info.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/info.c b/info.c
index 46b370892..2fe6e470b 100644
--- a/info.c
+++ b/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);
+}