Title: [219226] trunk/Source/WebCore
Revision
219226
Author
[email protected]
Date
2017-07-06 17:00:30 -0700 (Thu, 06 Jul 2017)

Log Message

[Cocoa] CTParagraphStyle leak under WebCore::LinkImageLayout::LinkImageLayout
https://bugs.webkit.org/show_bug.cgi?id=174228

Patch by Joseph Pecoraro <[email protected]> on 2017-07-06
Reviewed by Andreas Kling.

* platform/mac/DragImageMac.mm:
(WebCore::LinkImageLayout::LinkImageLayout):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (219225 => 219226)


--- trunk/Source/WebCore/ChangeLog	2017-07-06 23:59:08 UTC (rev 219225)
+++ trunk/Source/WebCore/ChangeLog	2017-07-07 00:00:30 UTC (rev 219226)
@@ -1,3 +1,13 @@
+2017-07-06  Joseph Pecoraro  <[email protected]>
+
+        [Cocoa] CTParagraphStyle leak under WebCore::LinkImageLayout::LinkImageLayout
+        https://bugs.webkit.org/show_bug.cgi?id=174228
+
+        Reviewed by Andreas Kling.
+
+        * platform/mac/DragImageMac.mm:
+        (WebCore::LinkImageLayout::LinkImageLayout):
+
 2017-07-06  Myles C. Maxfield  <[email protected]>
 
         [Cocoa] Improve performance of font lookups

Modified: trunk/Source/WebCore/platform/mac/DragImageMac.mm (219225 => 219226)


--- trunk/Source/WebCore/platform/mac/DragImageMac.mm	2017-07-06 23:59:08 UTC (rev 219225)
+++ trunk/Source/WebCore/platform/mac/DragImageMac.mm	2017-07-07 00:00:30 UTC (rev 219226)
@@ -226,7 +226,7 @@
         paragraphStyleSettings[0].spec = kCTParagraphStyleSpecifierLineBreakMode;
         paragraphStyleSettings[0].valueSize = sizeof(CTLineBreakMode);
         paragraphStyleSettings[0].value = &lineBreakMode;
-        RetainPtr<CTParagraphStyleRef> paragraphStyle = CTParagraphStyleCreate(paragraphStyleSettings, 1);
+        RetainPtr<CTParagraphStyleRef> paragraphStyle = adoptCF(CTParagraphStyleCreate(paragraphStyleSettings, 1));
 
         NSDictionary *textAttributes = @{
             (id)kCTFontAttributeName: font,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to