RESOLVED FIXED 115759
Move CanvasGradient and CanvasPattern in the union of CanvasStyle
https://bugs.webkit.org/show_bug.cgi?id=115759
Summary Move CanvasGradient and CanvasPattern in the union of CanvasStyle
Benjamin Poulain
Reported 2013-05-07 14:17:20 PDT
Move CanvasGradient and CanvasPattern in the union of CanvasStyle
Attachments
Patch (5.21 KB, patch)
2013-05-07 14:18 PDT, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2013-05-07 14:18:46 PDT
Benjamin Poulain
Comment 2 2013-05-07 15:13:12 PDT
Comment on attachment 200975 [details] Patch Clearing flags on attachment: 200975 Committed r149696: <http://trac.webkit.org/changeset/149696>
Benjamin Poulain
Comment 3 2013-05-07 15:13:14 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 4 2013-05-07 18:31:48 PDT
Comment on attachment 200975 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=200975&action=review > Source/WebCore/html/canvas/CanvasStyle.cpp:130 > - , m_gradient(gradient) > + , m_gradient(gradient.leakRef()) > { > + m_gradient->ref(); This looks like a storage leak to me. We already have a ref because of the call to leakRef, no need to call ref again. > Source/WebCore/html/canvas/CanvasStyle.cpp:137 > - , m_pattern(pattern) > + , m_pattern(pattern.leakRef()) > { > + m_pattern->ref(); Ditto. Am I right?
Benjamin Poulain
Comment 5 2013-05-07 18:42:51 PDT
Damn! That is right. Follow up: http://trac.webkit.org/changeset/149706
Note You need to log in before you can comment on or make changes to this bug.