aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-folder-thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-folder-thread.c')
-rw-r--r--camel/camel-folder-thread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c
index 9d5ecf2861..a67ab5d5b2 100644
--- a/camel/camel-folder-thread.c
+++ b/camel/camel-folder-thread.c
@@ -662,6 +662,10 @@ camel_folder_thread_messages_apply(CamelFolderThread *thread, GPtrArray *uids)
g_ptr_array_add(all, info);
g_hash_table_destroy(table);
+
+ thread->tree = NULL;
+ e_memchunk_destroy(thread->node_chunks);
+ thread->node_chunks = e_memchunk_new(32, sizeof(CamelFolderThreadNode));
thread_summary(thread, all);
g_ptr_array_free(thread->summary, TRUE);
@@ -777,7 +781,7 @@ camel_folder_thread_messages_add(CamelFolderThread *thread, GPtrArray *summary)
/* reset the tree, and rebuild fully */
thread->tree = NULL;
e_memchunk_empty(thread->node_chunks);
- thread_summary(thread, all, NULL);
+ thread_summary(thread, all);
}
static void