Changeset 219226 in webkit


Ignore:
Timestamp:
Jul 6, 2017 5:00:30 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2017-07-06
Reviewed by Andreas Kling.

  • platform/mac/DragImageMac.mm:

(WebCore::LinkImageLayout::LinkImageLayout):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r219223 r219226  
     12017-07-06  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        [Cocoa] CTParagraphStyle leak under WebCore::LinkImageLayout::LinkImageLayout
     4        https://bugs.webkit.org/show_bug.cgi?id=174228
     5
     6        Reviewed by Andreas Kling.
     7
     8        * platform/mac/DragImageMac.mm:
     9        (WebCore::LinkImageLayout::LinkImageLayout):
     10
    1112017-07-06  Myles C. Maxfield  <mmaxfield@apple.com>
    212
  • trunk/Source/WebCore/platform/mac/DragImageMac.mm

    r219191 r219226  
    227227        paragraphStyleSettings[0].valueSize = sizeof(CTLineBreakMode);
    228228        paragraphStyleSettings[0].value = &lineBreakMode;
    229         RetainPtr<CTParagraphStyleRef> paragraphStyle = CTParagraphStyleCreate(paragraphStyleSettings, 1);
     229        RetainPtr<CTParagraphStyleRef> paragraphStyle = adoptCF(CTParagraphStyleCreate(paragraphStyleSettings, 1));
    230230
    231231        NSDictionary *textAttributes = @{
Note: See TracChangeset for help on using the changeset viewer.