diff options
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 3175c4e5b1..ddfbe0b465 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -2691,11 +2691,10 @@ regen_list_regened (struct _mail_msg *mm) if (m->dotree) { build_tree (m->ml, m->tree, m->changes); - g_assert(m->ml->thread_tree == NULL || m->ml->thread_tree == m->tree); - if (m->ml->thread_tree == NULL) { - m->ml->thread_tree = m->tree; - m->tree = NULL; - } + if (m->ml->thread_tree) + camel_folder_thread_messages_unref(m->ml->thread_tree); + m->ml->thread_tree = m->tree; + m->tree = NULL; } else build_flat (m->ml, m->summary, m->changes); |