diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-10-02 01:52:43 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-10-01 20:55:28 -0700 |
commit | cfefa0206dce3e144ee51383d81a146719b64737 (patch) | |
tree | 79c86a2ef00bc860840dedd3dceaecdea47c09a8 /gtk-gui.c | |
parent | 7f01b91c991e67a2a1a20a75a3ff01ad4fa6d975 (diff) | |
download | subsurface-cfefa0206dce3e144ee51383d81a146719b64737.tar.gz |
Destroy the divelist (tree) before calling gtk_main_quit()
Added new function dive_list_destroy() in divelist.c
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r-- | gtk-gui.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -356,6 +356,7 @@ static gboolean on_delete(GtkWidget* w, gpointer data) static void on_destroy(GtkWidget* w, gpointer data) { + dive_list_destroy(); gtk_main_quit(); } @@ -369,6 +370,7 @@ void quit(GtkWidget *w, gpointer data) quit = ask_save_changes(); if (quit){ + dive_list_destroy(); gtk_main_quit(); } } |