don't leak the summary when reloading it. Fixes a very large leak.

2003-06-13  Larry Ewing  <lewing@ximian.com>

	* camel-folder-thread.c (camel_folder_thread_messages_apply):
	don't leak the summary when reloading it.  Fixes a very large
	leak.

svn path=/trunk/; revision=21465
This commit is contained in:
Larry Ewing
2003-06-18 15:13:12 +00:00
committed by Larry Ewing
parent 210029e166
commit b48b984e10
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-06-13 Larry Ewing <lewing@ximian.com>
* camel-folder-thread.c (camel_folder_thread_messages_apply):
don't leak the summary when reloading it. Fixes a very large
leak.
2003-06-17 Not Zed <NotZed@Ximian.com>
* camel-vee-folder.c (vee_folder_remove_folder): Calculate ranges

View File

@ -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