aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-formatter.c
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2006-06-19 15:39:22 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-06-19 15:39:22 +0800
commita5cbed25f3ca4dc4a805881aa051fa4d0a7a675f (patch)
tree75aa5188f7700acde5fc241fd9fee0c4d17f8979 /plugins/itip-formatter/itip-formatter.c
parent010edfb73345e87300c99271144800b645550f24 (diff)
downloadgsoc2013-evolution-a5cbed25f3ca4dc4a805881aa051fa4d0a7a675f.tar.gz
gsoc2013-evolution-a5cbed25f3ca4dc4a805881aa051fa4d0a7a675f.tar.zst
gsoc2013-evolution-a5cbed25f3ca4dc4a805881aa051fa4d0a7a675f.zip
Free GSList and its data after calling
2006-06-19 Harish Krishnaswamy <kharish@novell.com> * itip-formatter.c (update_item): Free GSList and its data after calling e_cal_component_get_attachment_list. svn path=/trunk/; revision=32169
Diffstat (limited to 'plugins/itip-formatter/itip-formatter.c')
-rw-r--r--plugins/itip-formatter/itip-formatter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 8e08be72e3..4e1df08b16 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -833,6 +833,9 @@ update_item (FormatItipPObject *pitip, ItipViewResponse response)
new_attachments = g_slist_append (new_attachments, g_strdup (uri));
}
}
+
+ g_slist_foreach (attachments, g_free, NULL);
+ g_slist_free (attachments);
e_cal_component_set_attachment_list (clone_comp, new_attachments);
}