Subj : how to delete an object To : netscape.public.mozilla.jseng From : Brann Joly Date : Wed May 26 2004 12:29 pm hi I know how to create objects using JS_NewObject, but i don't know how to destroy them, so that they are no longer available to the user?. Should i define objects as properties of others, and use JS_DeleteProperty, so that they are unrooted and eventually GCed ? If so, how do one destroy objects created with JS_NewObject ? Can someone give me a reason why one would want to create an object, and not to assign it as a property of another object later? If one object A is a property of an object B, will my getter callback still be called when the user wants to access A ? I guess there is a resolve hook somewhere, but I don't really have a clue on what to do with it thx .