aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
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')
-rw-r--r--plugins/itip-formatter/ChangeLog6
-rw-r--r--plugins/itip-formatter/itip-formatter.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 51fb4b80c3..e1aa2c2acc 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2006-06-16 Sankar P <psankar@novell.com>
* itip-formatter.c: (view_response_cb):
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);
}