aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-03-02 22:12:02 +0800
committerMilan Crha <mcrha@redhat.com>2011-03-02 22:13:40 +0800
commit2533e52b8cf543eed874d220a3f039eebe67253e (patch)
tree20b018e5f1b86200982fd7bb324aef3358469070 /plugins
parenta0854ec1a6591ea10ba7915f37684f78f476fcd4 (diff)
downloadgsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.tar
gsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.tar.gz
gsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.tar.bz2
gsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.tar.lz
gsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.tar.xz
gsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.tar.zst
gsoc2013-evolution-2533e52b8cf543eed874d220a3f039eebe67253e.zip
Do not leak attachments in a mail view
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-to-task/mail-to-task.c1
1 files changed, 1 insertions, 0 deletions
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);
}