On Friday 20 March 2009 02:42:09 am Chuck Bohling wrote:
> With windows client MAPI, the props returned by IMAPIProp::GetProps are
> freed with a single call to MAPIFreeBuffer. That does not seem to be the
> case with OpenChange GetProps and GetPropsAll. What is the correct way free
> the props so that there are no resource leaks?
MAPIFreeBuffer should do it.

We do have a few examples, although I won't promise that they are all perfect, 
it is a bug if they don't clean up properly. The simplest example I can think 
of is the mapitest GetProps / GetPropsAll tests, which you'll find in 
utils/mapitest/modules/module_oxcprpt.c

Alternatively, if you can show us the code you're working on, and the valgrind 
(or equivalent) report, that might help.

Brad

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to