From 2bfb0aacbd3290d801257ad8a8a850e5dbe26b67 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 4 Apr 2005 19:48:18 +0000 Subject: Fixes #68423 2005-04-04 Rodrigo Moya Fixes #68423 * gui/migration.c (migrate_ical): * gui/e-tasks,c (e_tasks_expunge): * gui/gnome-cal.c (gnome_calendar_purge): fixed huge (in some cases) memory leaks. svn path=/trunk/; revision=29151 --- calendar/ChangeLog | 9 +++++++++ calendar/gui/e-tasks.c | 3 +++ calendar/gui/gnome-cal.c | 3 +++ calendar/gui/migration.c | 3 +++ 4 files changed, 18 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 2b411c8185..87ee706d4d 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,12 @@ +2005-04-04 Rodrigo Moya + + Fixes #68423 + + * gui/migration.c (migrate_ical): + * gui/e-tasks,c (e_tasks_expunge): + * gui/gnome-cal.c (gnome_calendar_purge): fixed huge (in some cases) + memory leaks. + 2005-04-01 Rodrigo Moya Fixes #41740 diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 78ce565da1..1d1c405c0d 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -1159,6 +1159,9 @@ e_tasks_delete_completed (ETasks *tasks) /* FIXME Better error handling */ e_cal_remove_object (client, icalcomponent_get_uid (m->data), NULL); } + + g_list_foreach (objects, (GFunc) icalcomponent_free, NULL); + g_list_free (objects); } set_status_message (tasks, NULL); diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index c515dc36e9..c36b740d81 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -3267,6 +3267,9 @@ gnome_calendar_purge (GnomeCalendar *gcal, time_t older_than) if (remove) e_cal_remove_object (client, icalcomponent_get_uid (m->data), NULL); } + + g_list_foreach (objects, (GFunc) icalcomponent_free, NULL); + g_list_free (objects); } e_calendar_view_set_status_message (E_CALENDAR_VIEW (priv->week_view), NULL); diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index fb8f0b2f8c..f15efce53b 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -299,6 +299,9 @@ migrate_ical (ECal *old_ecal, ECal *new_ecal) dialog_set_progress ((double)num_added / num_objects); } + g_list_foreach (objects, (GFunc) icalcomponent_free, NULL); + g_list_free (objects); + return retval; } -- cgit v1.2.3