[webkit-help] Memory management and the C API
ap at webkit.org
Thu Apr 1 09:07:20 PDT 2010
01.04.2010, в 06:04, Allison Newman написал(а):
> For example, when I call JSStringCreateWithUTF8CString(), do I need to do a JSStringRetain() on the resulting string object?
> And if not, does that mean that I have to do an explicit JSStringRelease()? Are these objects subject to garbage collection at all, or do they need to be explicitly retained/released? Or does the act of doing a retain disable garbage collection on an object?
> If they are subject to garbage collection, when does the garbage collection run? Is it in a separate thread?
This is an implementation detail that can change.
- WBR, Alexey Proskuryakov
More information about the webkit-help