Monotone-Parent: 5acda2afec59d0f39574d366491c5ae9f40fa3de
Monotone-Revision: 638f19a902b772b34bc553dda4b8925b5d0639df Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-02-02T01:50:45 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
e149946f3b
commit
82b2bedd7e
|
@ -1,5 +1,10 @@
|
|||
2012-02-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreUserContext.m (-destroy): dont't release
|
||||
"username" as it is not initially retained.
|
||||
(+userContextWithUsername:andTDBIndexing:): the resulting instance
|
||||
is cached in the table from here instead.
|
||||
|
||||
* OpenChange/MAPIStoreTable.m (-destroyHandle:): skih operation if
|
||||
the handle parameter is 0.
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ static NSMapTable *contextsTable = nil;
|
|||
userContext = [[self alloc] initWithUsername: username
|
||||
andTDBIndexing: indexingTdb];
|
||||
[userContext autorelease];
|
||||
[contextsTable setObject: userContext forKey: username];
|
||||
}
|
||||
|
||||
return userContext;
|
||||
|
@ -97,11 +98,9 @@ static NSMapTable *contextsTable = nil;
|
|||
if (indexingTdb)
|
||||
ASSIGN (mapping, [MAPIStoreMapping mappingForUsername: username
|
||||
withIndexing: indexingTdb]);
|
||||
[contextsTable setObject: self forKey: username];
|
||||
|
||||
authenticator = [MAPIStoreAuthenticator new];
|
||||
[authenticator setUsername: username];
|
||||
|
||||
/* TODO: very hackish (IMAP access) */
|
||||
[authenticator setPassword: username];
|
||||
}
|
||||
|
@ -118,7 +117,6 @@ static NSMapTable *contextsTable = nil;
|
|||
[authenticator release];
|
||||
[mapping release];
|
||||
|
||||
[username release];
|
||||
[sogoUser release];
|
||||
|
||||
[contextsTable removeObjectForKey: username];
|
||||
|
|
Loading…
Reference in New Issue