aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index d8c5b4a39b..925feb4303 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -27,8 +27,6 @@ folder_browser_destroy (GtkObject *object)
{
FolderBrowser *folder_browser = FOLDER_BROWSER (object);
- camel_folder_sync (folder_browser->folder, FALSE, NULL);
-
if (folder_browser->shell) {
CORBA_Environment ev;
@@ -40,8 +38,10 @@ folder_browser_destroy (GtkObject *object)
if (folder_browser->uri)
g_free (folder_browser->uri);
- if (folder_browser->folder)
+ if (folder_browser->folder) {
+ camel_folder_sync (folder_browser->folder, FALSE, NULL);
gtk_object_unref (GTK_OBJECT (folder_browser->folder));
+ }
if (folder_browser->message_list)
bonobo_object_unref (BONOBO_OBJECT (folder_browser->message_list));