diff --git a/UI/MainUI/SOGoUserHomePage.m b/UI/MainUI/SOGoUserHomePage.m index 02de6ad66..3d2b8f12a 100644 --- a/UI/MainUI/SOGoUserHomePage.m +++ b/UI/MainUI/SOGoUserHomePage.m @@ -323,7 +323,7 @@ static NSString *LDAPContactInfoAttribute = nil; [response setHeader: @"text/plain; charset=utf-8" forKey: @"Content-Type"]; - responseString = [NSMutableString new]; + responseString = [NSMutableString string]; // We sort our array - this is pretty useful for the Web // interface of SOGo. @@ -353,7 +353,6 @@ static NSString *LDAPContactInfoAttribute = nil; } } [response appendContentString: responseString]; - [responseString release]; return response; } diff --git a/UI/SOGoUI/SOGoAptFormatter.m b/UI/SOGoUI/SOGoAptFormatter.m index 3c5c4b54b..dbd49401d 100644 --- a/UI/SOGoUI/SOGoAptFormatter.m +++ b/UI/SOGoUI/SOGoAptFormatter.m @@ -240,8 +240,7 @@ NSCalendarDate *startDate; NSTimeZone *dtz; - title = [NSMutableString new]; - [title autorelease]; + title = [NSMutableString string]; dtz = [self displayTZ]; startDate = [_apt valueForKey: @"startDate"]; diff --git a/UI/Scheduler/UIxTimeDateControl.m b/UI/Scheduler/UIxTimeDateControl.m index c36b85385..cc768cb2b 100644 --- a/UI/Scheduler/UIxTimeDateControl.m +++ b/UI/Scheduler/UIxTimeDateControl.m @@ -176,9 +176,7 @@ NSMutableArray *hours; unsigned int h; - hours = [NSMutableArray new]; - [hours autorelease]; - + hours = [NSMutableArray array]; for (h = startHour; h < (endHour + 1); h++) [hours addObject: [NSNumber numberWithInt: h]]; @@ -210,9 +208,7 @@ NSMutableArray *minutes; unsigned int m; - minutes = [NSMutableArray new]; - [minutes autorelease]; - + minutes = [NSMutableArray array]; for (m = 0; m < 60; m += 15) [minutes addObject: [NSNumber numberWithInt: m]];