From 498337e8524e1acf9f9471fc8c54038341035911 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 2 Mar 2011 15:12:02 +0100 Subject: Do not leak attachments in a mail view --- plugins/mail-to-task/mail-to-task.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mail-to-task') diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 794badc969..558489578a 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -384,6 +384,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) /* XXX Does this take ownership of the list? */ e_cal_component_set_attachment_list (comp, uri_list); + e_attachment_store_remove_all (store); g_object_unref (destination); g_object_unref (store); } -- cgit v1.2.3