diff options
Diffstat (limited to 'calendar/cal-util/cal-util.c')
-rw-r--r-- | calendar/cal-util/cal-util.c | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/calendar/cal-util/cal-util.c b/calendar/cal-util/cal-util.c index fc5a22dae9..40c4fe5bfe 100644 --- a/calendar/cal-util/cal-util.c +++ b/calendar/cal-util/cal-util.c @@ -28,9 +28,9 @@ /** * cal_obj_instance_list_free: - * @list: List of CalObjInstance structures. + * @list: List of #CalObjInstance structures. * - * Frees a list of CalObjInstance structures. + * Frees a list of #CalObjInstance structures. **/ void cal_obj_instance_list_free (GList *list) @@ -52,6 +52,31 @@ cal_obj_instance_list_free (GList *list) } /** + * cal_alarm_instance_list_free: + * @list: List of #CalAlarmInstance structures. + * + * Frees a list of #CalAlarmInstance structures. + **/ +void +cal_alarm_instance_list_free (GList *list) +{ + CalAlarmInstance *i; + GList *l; + + for (l = list; l; l = l->next) { + i = l->data; + + g_assert (i != NULL); + g_assert (i->uid != NULL); + + g_free (i->uid); + g_free (i); + } + + g_list_free (list); +} + +/** * cal_obj_uid_list_free: * @list: List of strings with unique identifiers. * |