[webkit-dev] how to destroy JSObjescts?

Alexey Proskuryakov ap at webkit.org
Wed Nov 26 01:05:20 PST 2008

Nov 26, 2008, в 10:47 AM, Iulian написал(а):

> The class definition of my object has initialize() and finalize().
> When i load the page that contains "MyObject obj= new MyObject();" the
> object is constructed and the initialize() is called. Unfortunatelly  
> this
> object is never garbage collected (not even when the browser is  
> closed).
> I tried putting JSObjectDeleteProperty but nothing changed.

If you want to trigger garbage collection explicitly, you can use  
JSGarbageCollect function.

- WBR, Alexey Proskuryakov

More information about the webkit-dev mailing list