Subj : question: memory allocated by JS_Enumerate(). To : netscape.public.mozilla.jseng From : jp Date : Fri May 06 2005 12:21 am Did a search in the list, didn't find anything. I have been hunting a memory leak for the past 3 days. Now i suspect that the memory allocated by JS_Enumerate() will not be release unless you call JS_DestroyIdArray(). So here's my questions: 1. Do I need to use JS_DestroyIdArray() to release the pointer returned by JS_Enumerate()? 2. It seems, if I don't use JS_DestroyIdArray() to release the pointer, the memory will not be released even after I destroy the context and runtime. Is that true? 3. If 2 is true, I think it is very easy for users to forget to call JS_DestroyIdArray(). At least the document should emphasis it. 4. Is there any other situation similar to this where I should use extra caution? I was really scared by this. :) It took my team 3 days to figure it out. 5. It would be nice to have a way to find out how much memory the runtime is using. thanks. jia .