mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-03 18:45:26 +00:00
fix(calendar): Fix high memory usage when importing an ics
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user