aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-29 22:31:31 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-29 22:31:31 +0800
commitad1b3754f7152ecdf76a9f9ddde2a394c0588800 (patch)
tree77bb7d474e1829e34cd68ebdc0fae990134f167f /mail/e-mail-reader.c
parentcbd3b67ea03a1c4c4333f88a2bb569df62678645 (diff)
downloadgsoc2013-evolution-ad1b3754f7152ecdf76a9f9ddde2a394c0588800.tar.gz
gsoc2013-evolution-ad1b3754f7152ecdf76a9f9ddde2a394c0588800.tar.zst
gsoc2013-evolution-ad1b3754f7152ecdf76a9f9ddde2a394c0588800.zip
Bug #545505 - Properly free unused message infos periodically
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c6
1 files changed, 5 insertions, 1 deletions
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 ())