From ad1b3754f7152ecdf76a9f9ddde2a394c0588800 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 29 Apr 2010 16:31:31 +0200 Subject: Bug #545505 - Properly free unused message infos periodically --- mail/e-mail-reader.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mail/e-mail-reader.c') diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index abcdb4d3b5..50849a1d54 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -151,6 +151,8 @@ action_mail_add_sender_cb (GtkAction *action, e_shell_event (shell, "contact-quick-add-email", (gpointer) address); emu_remove_from_mail_cache_1 (address); exit: + if (info) + camel_folder_free_message_info (folder, info); em_utils_uids_free (uids); } @@ -870,7 +872,7 @@ action_mail_save_as_cb (GtkAction *action, if (subject) suggestion = g_strconcat (subject, ".mbox", NULL); - camel_message_info_free (info); + camel_folder_free_message_info (folder, info); } if (!suggestion) { @@ -2807,6 +2809,8 @@ e_mail_reader_check_state (EMailReader *reader) string = camel_message_info_mlist (info); is_mailing_list &= (string != NULL && *string != '\0'); + + camel_folder_free_message_info (folder, info); } if (em_utils_check_user_can_send_mail ()) -- cgit v1.2.3