From a5cbed25f3ca4dc4a805881aa051fa4d0a7a675f Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Mon, 19 Jun 2006 07:39:22 +0000 Subject: Free GSList and its data after calling 2006-06-19 Harish Krishnaswamy * itip-formatter.c (update_item): Free GSList and its data after calling e_cal_component_get_attachment_list. svn path=/trunk/; revision=32169 --- plugins/itip-formatter/ChangeLog | 6 ++++++ plugins/itip-formatter/itip-formatter.c | 3 +++ 2 files changed, 9 insertions(+) (limited to 'plugins/itip-formatter') 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 + + * itip-formatter.c (update_item): + Free GSList and its data after calling + e_cal_component_get_attachment_list. + 2006-06-16 Sankar P * 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); } -- cgit