[EMAIL PROTECTED] wrote:
> Since one is allocating memory, do I need to nsMemory::Free it?  The
> return ends up in JS space ... so will the memory be handled
> automagically by XPConnect/Glue?

Yes, if JavaScript calls your function, XPConnect will handle the 
freeing. (If you wanted to call it from C++, you'd have to do it yourself)



-- 
All the world's a stage,
And all the men and women merely players:
They have their exits and their entrances;
And one man in his time plays many parts, [...]     --W. Shakespeare
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to