From c20e677a134e5297a8400772d68a1ca91c97a7a7 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 8 May 2001 20:26:29 +0000 Subject: free the alarm component if it doesn't have a parent, rather than if it 2001-05-08 JP Rosevear * cal-util/cal-component.c (cal_component_alarm_free): (cal_component_alarm_free): free the alarm component if it doesn't have a parent, rather than if it does * gui/Makefile.am: sanitize LD_ADDS and CFLAGS so the libtool lines are shorter (fixes problem on solaries due to sed) svn path=/trunk/; revision=9720 --- calendar/cal-util/cal-component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index 237bf56842..d43234617a 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -4003,7 +4003,7 @@ cal_component_alarm_free (CalComponentAlarm *alarm) g_assert (alarm->icalcomp != NULL); - if (icalcomponent_get_parent (alarm->icalcomp) != NULL) + if (icalcomponent_get_parent (alarm->icalcomp) == NULL) icalcomponent_free (alarm->icalcomp); alarm->icalcomp = NULL; -- cgit v1.2.3