From 927055105054788b1ce802d5394ea4f8302ef78e Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 24 Mar 2009 14:25:44 +0000 Subject: [PATCH] Monotone-Parent: e0570f48ebcd0056aa949c6b4c5df7386238e282 Monotone-Revision: c899af499a48639ec23979b9d33c7db9843f7110 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-24T14:25:44 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/SOGoUser.m | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 070de71ec..bd1c2c991 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-03-24 Wolfgang Sourdeau + * SoObjects/SOGo/SOGoUser.m ([SOGoUser + -_prepareDefaultMailAccounts]): return an autoreleased array to + avoid a leak. + * UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions -initWithRequest:newRequest]): retain dateFormatter, since it is released in -dealloc. diff --git a/SoObjects/SOGo/SOGoUser.m b/SoObjects/SOGo/SOGoUser.m index 3d4a4a9aa..f725e525a 100644 --- a/SoObjects/SOGo/SOGoUser.m +++ b/SoObjects/SOGo/SOGoUser.m @@ -740,7 +740,7 @@ _timeValue (NSString *key) [mailAccount setObject: identities forKey: @"identities"]; - mailAccounts = [NSMutableArray new]; + mailAccounts = [NSMutableArray array]; [mailAccounts addObject: mailAccount]; return mailAccounts;