Monotone-Parent: 6cab0a382f42089e9c8aa95c4ce8740cabe5cd1c

Monotone-Revision: 075d74e27ae04f20b3c4704bd989f61c0e07ddf6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-10-17T15:29:14
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-10-17 15:29:14 +00:00
parent eff16d0f66
commit c97bab4457
3 changed files with 11 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ MAPIStoreMappingTDBTraverse (TDB_CONTEXT *ctx, TDB_DATA data1, TDB_DATA data2,
{
if ((self = [super init]))
{
memCtx = talloc_zero (NULL, TALLOC_CTX);
mapping = [NSMutableDictionary new];
reverseMapping = [NSMutableDictionary new];
indexing = NULL;
@@ -153,6 +154,7 @@ MAPIStoreMappingTDBTraverse (TDB_CONTEXT *ctx, TDB_DATA data1, TDB_DATA data2,
{
ASSIGN (username, newUsername);
indexing = newIndexing;
(void) talloc_reference (memCtx, newIndexing);
tdb_traverse_read (indexing->tdb, MAPIStoreMappingTDBTraverse, mapping);
keys = [mapping allKeys];
max = [keys count];
@@ -175,6 +177,7 @@ MAPIStoreMappingTDBTraverse (TDB_CONTEXT *ctx, TDB_DATA data1, TDB_DATA data2,
[username release];
[mapping release];
[reverseMapping release];
talloc_free (memCtx);
[super dealloc];
}