Subj : Re: JS_GC behaviour changed in rc5 ??? To : netscape.public.mozilla.jseng From : Shanti Rao Date : Sun Feb 02 2003 08:35 pm Franky, I've discovered memory leaks from JS_GetStringBytes() (Bug 191675) and JS_CompileScript(), around 64 bytes per call. It may be the atom table not being freed, not the strings themselves. Perhaps if I used the UC functions (do you?) instead, this wouldn't be a problem. The leaks are also there with my rc3 builds. But I've always been using JS_GC before JS_DestroyContext. Shanti Franky Braem wrote: > > > Hi, > > Last week I changed from rc4 to rc5. Today I found out that some of my > scripts create memory leaks. When I call JS_GC before JS_DestroyContext, the > memory leaks are gone. To be sure that my code wasn't changed, I've > reinstalled rc4, removed the JS_GC and ran the application again: no memory > leaks. > > So my question is: is the behaviour of JS_GC or JS_DestroyContext changed? > > Franky. > > > .