mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 05:33:20 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user