diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-06-27 17:01:24 +0000 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-06-27 17:01:24 +0000 |
commit | cdada4d65cd7c37410d18a89aa8b504584ba23b2 (patch) | |
tree | 7a29ad0e0d1b9407e8001b29a3c39f54b3fc24eb | |
parent | bc3ad3ba94df85c713963dd7475aaae39a0ce9bf (diff) | |
download | evolution-data-server-evolution-1-2-branch.tar.gz |
Backport of Larry's original patch against 1.4evolution-1-2-branch
2003-06-26 Jeffrey Stedfast <fejj@ximian.com>
Backport of Larry's original patch against 1.4
* camel-folder-thread.c (camel_folder_thread_messages_apply):
don't leak the summary chunks when reloading it.
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-folder-thread.c | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 5b1d2fef8..fbf73a1c9 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2003-06-26 Jeffrey Stedfast <fejj@ximian.com> + + Backport of Larry's original patch against 1.4 + + * camel-folder-thread.c (camel_folder_thread_messages_apply): + don't leak the summary chunks when reloading it. + 2003-03-28 Jeffrey Stedfast <fejj@ximian.com> * camel-sasl-gssapi.c (gssapi_challenge): If we are using the diff --git a/camel/camel-folder-thread.c b/camel/camel-folder-thread.c index 9d5ecf286..e3d164601 100644 --- a/camel/camel-folder-thread.c +++ b/camel/camel-folder-thread.c @@ -662,6 +662,11 @@ 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); |