From 7bad646b7681db13c9c37d8645c7afc005594b37 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 15 Dec 2008 22:23:40 +0000 Subject: [PATCH] Monotone-Parent: 8373ee4a182606382fcb3aea7864b142db4aaa95 Monotone-Revision: 4b7309393c3e0f0f0211dde1161875de6f69a117 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-12-15T22:23:40 Monotone-Branch: ca.inverse.sogo --- SoObjects/SOGo/SOGoCache.m | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/SoObjects/SOGo/SOGoCache.m b/SoObjects/SOGo/SOGoCache.m index bbc940c87..e6cbf3090 100644 --- a/SoObjects/SOGo/SOGoCache.m +++ b/SoObjects/SOGo/SOGoCache.m @@ -58,12 +58,14 @@ static NSLock *lock; @implementation SOGoCache -#if defined(THREADSAFE) + (void) initialize { + #if defined(THREADSAFE) lock = [NSLock new]; -} #endif + s_userDefaults = [[NSMutableDictionary alloc] init]; + s_userSettings = [[NSMutableDictionary alloc] init]; +} + (NSTimeInterval) cleanupInterval { @@ -105,9 +107,6 @@ static NSLock *lock; cache = [[NSMutableDictionary alloc] init]; users = [[NSMutableDictionary alloc] init]; - s_userDefaults = [[NSMutableDictionary alloc] init]; - s_userSettings = [[NSMutableDictionary alloc] init]; - // We register ourself for notifications [[NSDistributedNotificationCenter defaultCenter] addObserver: self