diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 62c1a0a3fd..15940e7de8 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -323,8 +323,9 @@ add_component_alarms (ClientAlarms *ca, ECalComponentAlarms *alarms) GSList *l; /* No alarms? */ - if (alarms->alarms == NULL) { - e_cal_component_alarms_free (alarms); + if (alarms == NULL || alarms->alarms == NULL) { + if (alarms) + e_cal_component_alarms_free (alarms); return; } |