From 010edfb73345e87300c99271144800b645550f24 Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Mon, 19 Jun 2006 07:38:52 +0000 Subject: Free GSList and its data after calling 2006-06-19 Harish Krishnaswamy * gui/dialogs/comp-editor.c (fill_widgets): Free GSList and its data after calling e_cal_component_get_attachment_list. svn path=/trunk/; revision=32168 --- calendar/gui/dialogs/comp-editor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index d024eb7213..80827036f9 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -2357,6 +2357,8 @@ fill_widgets (CompEditor *editor) GSList *attachment_list = NULL; e_cal_component_get_attachment_list (priv->comp, &attachment_list); set_attachment_list (editor, attachment_list); + g_slist_foreach (attachment_list, g_free, NULL); + g_slist_free (attachment_list); } for (l = priv->pages; l != NULL; l = l->next) -- cgit v1.2.3