aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-attachment-bar.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-03-02 22:12:02 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:40 +0800
commit498337e8524e1acf9f9471fc8c54038341035911 (patch)
treecae6cdd53705523944e7885b8eb194b0e2863e95 /mail/e-mail-attachment-bar.c
parent623f79123688faa67a52076bd00a1e8885ea8023 (diff)
downloadgsoc2013-evolution-498337e8524e1acf9f9471fc8c54038341035911.tar.gz
gsoc2013-evolution-498337e8524e1acf9f9471fc8c54038341035911.tar.zst
gsoc2013-evolution-498337e8524e1acf9f9471fc8c54038341035911.zip
Do not leak attachments in a mail view
Diffstat (limited to 'mail/e-mail-attachment-bar.c')
-rw-r--r--mail/e-mail-attachment-bar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c
index 22f27fac20..0a5a3271fe 100644
--- a/mail/e-mail-attachment-bar.c
+++ b/mail/e-mail-attachment-bar.c
@@ -185,6 +185,7 @@ mail_attachment_bar_dispose (GObject *object)
priv = E_MAIL_ATTACHMENT_BAR (object)->priv;
if (priv->model != NULL) {
+ e_attachment_store_remove_all (E_ATTACHMENT_STORE (priv->model));
g_object_unref (priv->model);
priv->model = NULL;
}