[evolution-patches] patch for #68423 (calendar)



-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2706
diff -u -p -r1.2706 ChangeLog
--- ChangeLog	31 Mar 2005 05:26:27 -0000	1.2706
+++ ChangeLog	31 Mar 2005 16:46:05 -0000
@@ -1,3 +1,12 @@
+2005-03-xx  Rodrigo Moya <rodrigo novell com>
+
+	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-03-31  Chenthill Palanisamy  <pchenthill novell com>
 
 	Fixes #73969
Index: gui/migration.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/migration.c,v
retrieving revision 1.34
diff -u -p -r1.34 migration.c
--- gui/migration.c	15 Feb 2005 22:14:46 -0000	1.34
+++ gui/migration.c	31 Mar 2005 16:46:05 -0000
@@ -299,6 +299,9 @@ migrate_ical (ECal *old_ecal, ECal *new_
 		dialog_set_progress ((double)num_added / num_objects);
 	}
 
+	g_list_foreach (objects, (GFunc) icalcomponent_free, NULL);
+	g_list_free (objects);
+
 	return retval;
 }
 
Index: gui/e-tasks.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-tasks.c,v
retrieving revision 1.112
diff -u -p -r1.112 e-tasks.c
--- gui/e-tasks.c	5 Feb 2005 11:55:03 -0000	1.112
+++ gui/e-tasks.c	31 Mar 2005 16:46:06 -0000
@@ -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);
Index: gui/gnome-cal.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/gnome-cal.c,v
retrieving revision 1.370
diff -u -p -r1.370 gnome-cal.c
--- gui/gnome-cal.c	21 Mar 2005 14:34:03 -0000	1.370
+++ gui/gnome-cal.c	31 Mar 2005 16:46:06 -0000
@@ -3267,6 +3267,9 @@ gnome_calendar_purge (GnomeCalendar *gca
 			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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]