From 3bdf3aacdef197d8a716e8dc043b1a6efc34f5ee Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 13 Oct 2009 21:40:18 +0000 Subject: [PATCH] Monotone-Parent: 5244339e45ef9095573b10733228f85b81a17377 Monotone-Revision: 88abde23827bf8224db16cc732418d143787b3f6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-10-13T21:40:18 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/MailPartViewers/UIxMailPartICalActions.m | 2 +- UI/Scheduler/UIxAppointmentEditor.m | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 27a01963d..f8eea562b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-10-13 Wolfgang Sourdeau + * UI/Scheduler/UIxAppointmentEditor.m (-delegateAction): same as + below. + + * UI/MailPartViewers/UIxMailPartICalActions.m (-delegateAction): + delegatedAttendee is autoreleased to avoid a leak. + * SoObjects/SOGo/LDAPSource.m (-dealloc): we release the "searchAttributes" ivar, even though LDAPSource instances are never deallocated. diff --git a/UI/MailPartViewers/UIxMailPartICalActions.m b/UI/MailPartViewers/UIxMailPartICalActions.m index 9e7ebe283..1cd8a956e 100644 --- a/UI/MailPartViewers/UIxMailPartICalActions.m +++ b/UI/MailPartViewers/UIxMailPartICalActions.m @@ -264,6 +264,7 @@ { user = [context activeUser]; delegatedAttendee = [iCalPerson new]; + [delegatedAttendee autorelease]; [delegatedAttendee setEmail: delegatedEmail]; delegatedUid = [delegatedAttendee uid]; if (delegatedUid) @@ -272,7 +273,6 @@ delegatedUser = [SOGoUser userWithLogin: delegatedUid]; [delegatedAttendee setCn: [delegatedUser cn]]; } - [delegatedAttendee setRole: @"REQ-PARTICIPANT"]; [delegatedAttendee setRsvp: @"TRUE"]; [delegatedAttendee setParticipationStatus: iCalPersonPartStatNeedsAction]; diff --git a/UI/Scheduler/UIxAppointmentEditor.m b/UI/Scheduler/UIxAppointmentEditor.m index e59596105..5033c425d 100644 --- a/UI/Scheduler/UIxAppointmentEditor.m +++ b/UI/Scheduler/UIxAppointmentEditor.m @@ -547,6 +547,7 @@ { user = [context activeUser]; delegatedAttendee = [iCalPerson new]; + [delegatedAttendee autorelease]; [delegatedAttendee setEmail: delegatedEmail]; delegatedUid = [delegatedAttendee uid]; if (delegatedUid)