Merge pull request #327 from helsinki-systems/fix/duplicated-recurrence-rules

Fix OOM when having a lot of recurrence rules
This commit is contained in:
Le Programmeur
2022-10-24 14:50:05 +02:00
committed by GitHub
@@ -1358,7 +1358,9 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
rules = [component recurrenceRulesWithTimeZone: tz];
exRules = [component exceptionRulesWithTimeZone: tz];
}
rules = [rules uniqueObjects];
// Calculate the occurrences for the given range
records = [NSMutableArray array];
ranges =