diff options
author | Dan Winship <danw@src.gnome.org> | 2000-07-14 08:25:01 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-07-14 08:25:01 +0800 |
commit | db5378100389017aed128c0aefbb9029ab1e8014 (patch) | |
tree | df7ec1d8bcfd98aa8aa5395851447578890419b8 /mail/folder-browser.c | |
parent | a7cdc29a08b9b55c71ced639147e7caf4bd3c608 (diff) | |
download | gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar.gz gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar.bz2 gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar.lz gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar.xz gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar.zst gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.zip |
Only unref the folder if it's been set.
* message-list.c (message_list_destroy): Only unref the folder if
it's been set.
* folder-browser.c (folder_browser_destroy): Only sync the folder
if it's been set.
svn path=/trunk/; revision=4162
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 6 |
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)); |