Monotone-Parent: 011dcdb832dcd44414e6e9546d62de0737fbdcd6

Monotone-Revision: 077cf05982d8b328c0c4db80c174a594d7195243

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-03-24T16:34:03
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-03-24 16:34:03 +00:00
parent af733ce750
commit 90190dcef6
2 changed files with 11 additions and 8 deletions
+4
View File
@@ -1,5 +1,9 @@
2009-03-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Scheduler/UIxComponentEditor.m ([UIxComponentEditor
-_loadAttendees]): make use of autoreleased strings to avoid a leak.
([UIxComponentEditor -dealloc]): release componentCalendar.
* SoObjects/SOGo/SOGoUser.m ([SOGoUser
-_prepareDefaultMailAccounts]): return an autoreleased array to
avoid a leak.
+7 -8
View File
@@ -104,6 +104,7 @@ iRANGE(2);
dateFormat = [datePicker dateFormat];
component = nil;
componentCalendar = nil;
[self setPrivacy: @"PUBLIC"];
[self setIsCycleEndNever];
componentOwner = @"";
@@ -168,6 +169,7 @@ iRANGE(2);
[range2 release];
[component release];
[componentCalendar release];
[super dealloc];
}
@@ -180,10 +182,10 @@ iRANGE(2);
NSString *uid;
LDAPUserManager *um;
names = [NSMutableString new];
uids = [NSMutableString new];
emails = [NSMutableString new];
states = [NSMutableString new];
names = [NSMutableString string];
uids = [NSMutableString string];
emails = [NSMutableString string];
states = [NSMutableString string];
um = [LDAPUserManager sharedUserManager];
attendees = [[component attendees] objectEnumerator];
@@ -212,9 +214,6 @@ iRANGE(2);
[emails substringToIndex: [emails length] - 1]);
ASSIGN (attendeesStates, [states substringToIndex: [states length] - 1]);
}
[names release];
[emails release];
}
- (void) _loadCategories
@@ -397,7 +396,7 @@ iRANGE(2);
[self _loadAttendees];
[self _loadRRules];
[componentCalendar release];
[componentCalendar release];
componentCalendar = [co container];
if ([componentCalendar isKindOfClass: [SOGoCalendarComponent class]])
componentCalendar = [componentCalendar container];