[evolution-ews] Free the recurrence iterator once we're done with it



commit ed582285bbe828c1f09743e81feaa0425ef6b3bf
Author: Or Goshen <orx goshen intel com>
Date:   Sun Aug 28 11:02:18 2011 +0300

    Free the recurrence iterator once we're done with it

 src/calendar/e-cal-backend-ews.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 66ededa..38c71c8 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -927,6 +927,8 @@ e_cal_rid_to_index (const char *rid, icalcomponent *comp, GError **error)
 	for (; !icaltime_is_null_time (next); next = icalrecur_iterator_next (ritr), index++) {
 		if (icaltime_compare_date_only (o_time, next) == 0) break;
 	}
+
+	icalrecur_iterator_free (ritr);
 	
 	if (icaltime_is_null_time (next)) {
 		g_propagate_error (error, EDC_ERROR_EX(OtherError,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]