From 3acab3f89612bde3e74b7f108e47ea3ff4bd9bb6 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Wed, 14 Feb 2024 11:08:32 +0100 Subject: [PATCH] fix(calendar): Fix high memory usage when importing an ics --- SoObjects/Appointments/SOGoAppointmentFolder.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index fdcbe4bb4..6d99aaf5d 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -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); } //