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/message-list.c | |
parent | a7cdc29a08b9b55c71ced639147e7caf4bd3c608 (diff) | |
download | gsoc2013-evolution-db5378100389017aed128c0aefbb9029ab1e8014.tar.gz 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/message-list.c')
-rw-r--r-- | mail/message-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 73ac39d608..0bac0259e0 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -634,7 +634,8 @@ message_list_destroy (GtkObject *object) if (message_list->idle_id != 0) g_source_remove(message_list->idle_id); - gtk_object_unref (GTK_OBJECT (message_list->folder)); + if (message_list->folder) + gtk_object_unref (GTK_OBJECT (message_list->folder)); GTK_OBJECT_CLASS (message_list_parent_class)->destroy (object); } |