From 331e8a4f7dc413a36c370c087e44de14dace089f Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 27 Jan 2010 19:27:58 +0000 Subject: [PATCH] Monotone-Parent: 8700a58737ff7392bcc35403e222b4e7d5fac676 Monotone-Revision: 775b7e4fea80568033b5c8bf9b7c5220c7d36041 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-27T19:27:58 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ Tools/SOGoToolBackup.m | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3e30dc54a..f592d101a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-27 Wolfgang Sourdeau + + * Tools/SOGoToolBackup.m (-fetchUserIDs): retain allUsers to avoid + a release between the pool rotation. + 2010-01-25 Francis Lachapelle * UI/WebServerResources/SchedulerUI.js diff --git a/Tools/SOGoToolBackup.m b/Tools/SOGoToolBackup.m index 3f36727c5..2b76824d6 100644 --- a/Tools/SOGoToolBackup.m +++ b/Tools/SOGoToolBackup.m @@ -137,7 +137,7 @@ allUsers = [lm fetchUsersMatching: @"." inDomain: nil]; else { - allUsers = [NSMutableArray array]; + allUsers = [NSMutableArray new]; for (count = 0; count < max; count++) { if (count > 0 && count%100 == 0) @@ -153,6 +153,7 @@ else NSLog (@"user '%@' unknown", user); } + [allUsers autorelease]; } ASSIGN (userIDs, [allUsers objectsForKey: @"c_uid" notFoundMarker: nil]);