Changeset 205377 in webkit


Ignore:
Timestamp:
Sep 2, 2016 3:42:32 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[Mac] RetainPtr misuse, DDActionContext leaks
https://bugs.webkit.org/show_bug.cgi?id=161551

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-09-02
Reviewed by Tim Horton.

  • Platform/mac/MenuUtilities.mm:

(WebKit::menuItemForTelephoneNumber):
(WebKit::menuForTelephoneNumber):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r205375 r205377  
     12016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        [Mac] RetainPtr misuse, DDActionContext leaks
     4        https://bugs.webkit.org/show_bug.cgi?id=161551
     5
     6        Reviewed by Tim Horton.
     7
     8        * Platform/mac/MenuUtilities.mm:
     9        (WebKit::menuItemForTelephoneNumber):
     10        (WebKit::menuForTelephoneNumber):
     11
    1122016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
    213
  • trunk/Source/WebKit2/Platform/mac/MenuUtilities.mm

    r197902 r205377  
    5454        return nil;
    5555
    56     RetainPtr<DDActionContext> actionContext = [[getDDActionContextClass() alloc] init];
     56    RetainPtr<DDActionContext> actionContext = adoptNS([[getDDActionContextClass() alloc] init]);
    5757    [actionContext setAllowedActionUTIs:@[ @"com.apple.dial" ]];
    5858
     
    8585    NSMenuItem *dialItem = nil;
    8686
    87     RetainPtr<DDActionContext> actionContext = [[getDDActionContextClass() alloc] init];
     87    RetainPtr<DDActionContext> actionContext = adoptNS([[getDDActionContextClass() alloc] init]);
    8888    [actionContext setAllowedActionUTIs:@[ @"com.apple.dial", @"com.apple.facetime", @"com.apple.facetimeaudio" ]];
    8989
Note: See TracChangeset for help on using the changeset viewer.