aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-05-09 04:26:29 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-05-09 04:26:29 +0800
commitc20e677a134e5297a8400772d68a1ca91c97a7a7 (patch)
tree73b4edf45ba2955795e17822e0a0ca6f05ee44af /calendar/cal-util
parent6d353978e7f9ad61636d40f8713fa1b5c649ca54 (diff)
downloadgsoc2013-evolution-c20e677a134e5297a8400772d68a1ca91c97a7a7.tar.gz
gsoc2013-evolution-c20e677a134e5297a8400772d68a1ca91c97a7a7.tar.zst
gsoc2013-evolution-c20e677a134e5297a8400772d68a1ca91c97a7a7.zip
free the alarm component if it doesn't have a parent, rather than if it
2001-05-08 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/cal-component.c2
1 files changed, 1 insertions, 1 deletions
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;