[Webkit-unassigned] [Bug 141612] RenderMultiColumnSpannerPlaceholder leaks seen on leaks bot
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 28 11:21:04 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=141612
David Kilzer (:ddkilzer) <ddkilzer at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ddkilzer at webkit.org
--- Comment #4 from David Kilzer (:ddkilzer) <ddkilzer at webkit.org> ---
Are you sure this is intentional? The ChangeLog talks about leaking the placeholder, not the RenderStyle it uses.
Am I missing something?
diff --git a/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp b/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
index 6d7e9f1..f871aa2 100644
--- a/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
+++ b/Source/WebCore/rendering/RenderMultiColumnSpannerPlaceholder.cpp
@@ -36,9 +36,9 @@ namespace WebCore {
RenderMultiColumnSpannerPlaceholder* RenderMultiColumnSpannerPlaceholder::createAnonymous(RenderMultiColumnFlowThread* flowThread, RenderBox* spanner, RenderStyle* parentStyle)
{
- RefPtr<RenderStyle> newStyle(RenderStyle::createAnonymousStyleWithDisplay(parentStyle, BLOCK));
+ auto newStyle = RenderStyle::createAnonymousStyleWithDisplay(parentStyle, BLOCK);
newStyle->setClear(CBOTH); // We don't want floats in the row preceding the spanner to continue on the other side.
- auto placeholder = new RenderMultiColumnSpannerPlaceholder(flowThread, spanner, *newStyle);
+ auto placeholder = new RenderMultiColumnSpannerPlaceholder(flowThread, spanner, WTF::move(newStyle));
placeholder->initializeStyle();
return placeholder;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150228/08c07477/attachment-0002.html>
More information about the webkit-unassigned
mailing list