On Tue, 2010-05-11 at 19:45 +1000, Brad Hards wrote:
> > c) I'm afraid of memory usage. Are these arrays allocated on the
> global
> > memory context freed with the mapi_sprop struct or on the program
> > exit/global memory context free? The later is something I would like
> to
> > avoid. But I do not know how exactly this works.
> All the MV_ stuff in in the global context. Possibly we could allocate
> it in the same context as the thing we're casting from. Then it would
> go away when you free the associated thing you're casting from.
> Julien? 

        Hi,
it expects the mapi_sprop is allocated by talloc, isn't it? But there is
no guarantee to be done that way. That's why I thought of an explicit
memory context parameter. Of course, when one provides a memory context
it's pretty likely that the mapi_sprop is also allocated in it. Though
just likely.
        Bye,
        Milan

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

Reply via email to