From 05438a2dad5111faa4e3e6551f4cc8d9be56b092 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 8 Feb 2008 09:49:51 +0000 Subject: ** Part of fixes for bug #395939 2008-02-08 Milan Crha ** Part of fixes for bug #395939 * gui/alarm-notify/alarm-queue.c: (update_cqa): * conduits/calendar/calendar-conduit.c: (local_record_from_comp): Free alarm properly. svn path=/trunk/; revision=34976 --- calendar/conduits/calendar/calendar-conduit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/conduits') diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index 2654477e0f..9cc9227289 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -1104,6 +1104,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit for (l = uids; l != NULL; l = l->next) { alarm = e_cal_component_get_alarm (comp, l->data); e_cal_component_alarm_get_trigger (alarm, &trigger); + e_cal_component_alarm_free (alarm); if ((trigger.type == E_CAL_COMPONENT_ALARM_TRIGGER_RELATIVE_START && trigger.u.rel_duration.is_neg)) { @@ -1136,7 +1137,6 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit local->appt->alarm = 1; break; } - e_cal_component_alarm_free (alarm); } cal_obj_uid_list_free (uids); } -- cgit v1.2.3