[Webkit-unassigned] [Bug 27488] SVG and XPath memory leaks in V8 bindings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 22 23:07:08 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27488





--- Comment #3 from Eric Seidel <eric at webkit.org>  2009-07-22 23:07:08 PDT ---
(From update of attachment 33155)
I would encourage you to create a version of convertToV8Object which takes 
PassRefPtr<T> instead of a raw pointer.  That makes the calling convention
cleaner (that it takes ownership) and makes it easier to not have to do a
.get().  you can do .release() instead and cause less ref-churn.

See the toJS PassRefPtr<T> version in JSDOMBinding.h if you're looking for an
example.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list