Monotone-Parent: 0e4c262d0f94e6fb1bccfcb58387684c97728cfc

Monotone-Revision: df9680caaa44b795268f4691b92890bc37f8ee3f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-11T21:40:47
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-07-11 21:40:47 +00:00
parent cad140c0b2
commit c2c7125642
27 changed files with 591 additions and 310 deletions
+6 -4
View File
@@ -36,10 +36,11 @@
static int MAPIStoreTallocWrapperDestroy (void *data)
{
id wrappedObject;
struct MAPIStoreTallocWrapper *wrapper;
wrappedObject = data;
[wrappedObject release];
wrapper = data;
NSLog (@"destroying wrapped object (wrapper: %p; object: %p...\n", wrapper, wrapper->MAPIStoreSOGoObject);
[wrapper->MAPIStoreSOGoObject release];
return 0;
}
@@ -50,8 +51,9 @@ static int MAPIStoreTallocWrapperDestroy (void *data)
wrapper = talloc_zero (tallocCtx, struct MAPIStoreTallocWrapper);
wrapper->MAPIStoreSOGoObject = self;
[wrapper->MAPIStoreSOGoObject retain];
talloc_set_destructor ((void *) wrapper, MAPIStoreTallocWrapperDestroy);
[self retain];
NSLog (@"returning wrapper: %p; object: %p", wrapper, self);
return wrapper;
}