aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/message-list.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 850ef07037..849fae8ef9 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2665,15 +2665,16 @@ message_list_dispose (GObject *object)
priv->destroyed = TRUE;
- if (message_list->folder) {
+ if (message_list->folder)
mail_regen_cancel (message_list);
- if (message_list->uid_nodemap) {
- g_hash_table_foreach (message_list->uid_nodemap, (GHFunc) clear_info, message_list);
- g_hash_table_destroy (message_list->uid_nodemap);
- message_list->uid_nodemap = NULL;
- }
+ if (message_list->uid_nodemap) {
+ g_hash_table_foreach (message_list->uid_nodemap, (GHFunc) clear_info, message_list);
+ g_hash_table_destroy (message_list->uid_nodemap);
+ message_list->uid_nodemap = NULL;
+ }
+ if (message_list->folder) {
g_signal_handlers_disconnect_by_func (
message_list->folder, folder_changed, message_list);
g_object_unref (message_list->folder);