Christian Biesinger wrote:
Justin wrote:
My understanding is exactly that. You only need to use nsMemory when the data is going to be used and potentially freed in a script.
Eh, no. You always should use nsMemory. of course a lot of mozilla code doesn't do that...
Are all of the "different" memory allocators in the project (CRT, NSPR, nsCRT, nsMemory) actually different?
Don't nsCRT and nsMemory both call NSPR for de/allocation? Thus as long as all CRT allocating functions are prohibited (strdup, malloc, etc), it shouldn't matter if we call NSPR directly, or use nsCRT or nsMemory?
Brodie _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
