[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:05:29 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=27488
--- Comment #2 from Eric Seidel <eric at webkit.org> 2009-07-22 23:05:28 PDT ---
(From update of attachment 33155)
In general it's not safe to use .get() on a RefPtr:
$result .= $indent . "RefPtr<V8SVGPODTypeWrapper<" . $nativeReturnType . "> >
wrapper = ";
1527 $result .= "V8SVGPODTypeWrapperCreatorForList<" .
$nativeReturnType . ">::create($return, imp->associatedAttributeName());\n";
1528 $return = "wrapper.get()";
I guess we can assume that whatever uses $return causes a ref to it? Otherwise
if you return the raw pointer, that pointer will have been deleted.
--
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