summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 0a4ee48e9..5a680c776 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -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();
}
}