From 7387d967a271d6c118221c2ef2d847229218b510 Mon Sep 17 00:00:00 2001 From: Veerapuram Varadhan Date: Fri, 1 Jul 2005 15:14:33 +0000 Subject: Patch from Mark G. Adams Fixes #309138: * Generated UIDs were not being freed. svn path=/trunk/; revision=29614 --- calendar/ChangeLog | 5 +++++ calendar/conduits/calendar/calendar-conduit.c | 2 ++ calendar/conduits/todo/todo-conduit.c | 1 + 3 files changed, 8 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 71b80ab14d..1548243d23 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2005-06-27 Mark G. Adams + + * conduits/todo/todo-conduit.c: (add_record): Fix leak of uids + * conduits/calendar/calendar-conduit.c: (process_multi_day): Fix leak of uids + 2005-07-01 Praveen Kumar * gui/e-cal-config.h : Added the source type field in diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index b3c1b5e553..f67a6b6f1e 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -646,6 +646,8 @@ process_multi_day (ECalConduitContext *ctxt, ECalChange *ccc, GList **multi_comp event_start = day_end; day_end = time_day_end_with_zone (event_start, ctxt->timezone); + + g_free (new_uid); } dt_start.value = old_start_value; dt_end.value = old_end_value; diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index 1767741270..c4bb9885d8 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -1191,6 +1191,7 @@ add_record (GnomePilotConduitSyncAbs *conduit, e_pilot_map_insert (ctxt->map, remote->ID, uid, FALSE); g_object_unref (comp); + g_free (uid); return retval; } -- cgit v1.2.3