From e17b3c90f4a2fc285d83a8badd780b258629b853 Mon Sep 17 00:00:00 2001 From: NotZed Date: Thu, 11 May 2000 18:39:53 +0000 Subject: Big bunch o memleaks fixed. 2000-05-11 NotZed * camel-mime-part.c (write_to_stream): Unref the filter after adding it to the filtering stream. * providers/mbox/camel-mbox-summary.c (camel_mbox_summary_finalise): Free the folder path. * camel-folder-summary.c (camel_folder_summary_finalise): Free the summary path. * camel-internet-address.c (internet_decode): Free multiple entry addresses properly. * camel-mime-utils.c (header_decode_mailbox): Plugged another memleak, free text after converting it. (header_decode_addrspec): More leaks plugged. * camel-mime-message.c (finalize): Free message_uid. (finalize): Free the recipients hashtable. svn path=/trunk/; revision=2989 --- camel/camel-mime-message.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'camel/camel-mime-message.c') diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c index 73d21e7735..7c28949856 100644 --- a/camel/camel-mime-message.c +++ b/camel/camel-mime-message.c @@ -193,9 +193,12 @@ finalize (GtkObject *object) g_free (message->subject); g_free (message->reply_to); g_free (message->from); + + g_free (message->message_uid); g_hash_table_foreach (message->recipients, g_lib_is_uber_crappy_shit, NULL); - + g_hash_table_destroy(message->recipients); + if (message->user_flags) g_hash_table_foreach (message->user_flags, free_key_only, NULL); g_hash_table_destroy(message->user_flags); -- cgit