fix(calendar): Fix high memory usage when importing an ics

This commit is contained in:
smizrahi
2024-02-14 11:08:32 +01:00
parent 889fe1eb39
commit 3acab3f896
@@ -1028,7 +1028,9 @@ static Class iCalEventK = nil;
{
iCalEntityObject *component;
iCalAlarm *alarm;
NSAutoreleasePool *pool;
pool = [[NSAutoreleasePool alloc] init];
if (![master recurrenceId])
{
component = [master copy];
@@ -1060,6 +1062,7 @@ static Class iCalEventK = nil;
}
RELEASE(component);
DESTROY(pool);
}
//