Monotone-Parent: 5c85a1a1d9228ad7653497f882f4fccc69f1d924

Monotone-Revision: 6ebfad7c881ce0f2eee326f619d2e684e3f91df3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-08-10T18:33:13
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-08-10 18:33:13 +00:00
parent d873840031
commit 785aa3c23e
1 changed files with 7 additions and 1 deletions

View File

@ -203,10 +203,15 @@ _prepareContextClass (Class contextClass,
withConnectionInfo: (struct mapistore_connection_info *) newConnInfo
andTDBIndexing: (struct tdb_wrap *) indexingTdb
{
NSString *username;
if ((self = [self init]))
{
ASSIGN (contextUrl, newUrl);
ASSIGN (mapping, [MAPIStoreMapping mappingWithIndexing: indexingTdb]);
username = [NSString stringWithUTF8String: newConnInfo->username];
ASSIGN (mapping, [MAPIStoreMapping mappingForUsername: username
withIndexing: indexingTdb]);
[mapping increaseUseCount];
mstoreCtx = newConnInfo->mstore_ctx;
connInfo = newConnInfo;
}
@ -219,6 +224,7 @@ _prepareContextClass (Class contextClass,
[baseFolder release];
[woContext release];
[authenticator release];
[mapping decreaseUseCount];
[mapping release];
[contextUrl release];