[Webkit-unassigned] [Bug 151810] New: Reference cycle between SVGElement and SVGPathSegWithContext leaks Document
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 3 10:47:05 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151810
Bug ID: 151810
Summary: Reference cycle between SVGElement and
SVGPathSegWithContext leaks Document
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sabouhallawa at apple.com
CC: zimmermann at kde.org
The issue is that "RefPtr<SVGPathElement> m_element" in SVGPathSegWithContext is causing reference cycle by using RefPtr to the element.
Specifically, SVGPathElement::m_pathSegList is a SVGPathSegList (subclass of a Vector of RefPtr<SVGPathSeg>), so it strongly references the SVGPathSeg. In practice, I think all SVGPathSeg objects are SVGPathSegWithContext (maybe that subclass should be folded into SVGPathSeg?) SVGPathSegWithContext::m_contextElement strongly references the SVGPathElement, and so we have a reference cycle.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151203/5a087e70/attachment-0001.html>
More information about the webkit-unassigned
mailing list