From 451b9b827e8c095c24e16ca5cae44b256632b44b Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Fri, 4 Jul 2003 20:04:21 +0000 Subject: [PATCH] 0.9.0claws80 * src/main.c destroy all FolderItems when shutting down to allow folders to clean up --- ChangeLog.claws | 6 ++++++ configure.ac | 2 +- src/main.c | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index c6e3d49a4..27f5072bf 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2003-07-04 [christoph] 0.9.0claws80 + + * src/main.c + destroy all FolderItems when shutting down to + allow folders to clean up + 2003-07-04 [melvin] 0.9.0claws79 * src/gtk/gtkaspell.c diff --git a/configure.ac b/configure.ac index 17fa31391..5bb14fb22 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=0 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws79 +EXTRA_VERSION=claws80 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/main.c b/src/main.c index 178c6a30f..804bde485 100644 --- a/src/main.c +++ b/src/main.c @@ -579,6 +579,7 @@ void app_will_exit(GtkWidget *widget, gpointer data) { MainWindow *mainwin = data; gchar *filename; + GList *list; if (compose_get_compose_list()) { gint val = alertpanel(_("Notice"), @@ -625,6 +626,11 @@ void app_will_exit(GtkWidget *widget, gpointer data) /* save all state before exiting */ folder_write_list(); folder_func_to_all_folders(save_all_caches, NULL); + for (list = folder_get_list(); list != NULL; list = g_list_next(list)) { + Folder *folder = FOLDER(list->data); + + folder_tree_destroy(folder); + } main_window_get_size(mainwin); main_window_get_position(mainwin); -- 2.25.1