⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 240256 in webkit


Ignore:
Timestamp:
Jan 22, 2019, 10:15:00 AM (8 years ago)
Author:
ddkilzer@apple.com
Message:

Leak of NSMutableArray (128 bytes) in com.apple.WebKit.WebContent running WebKit layout tests
<​https://webkit.org/b/193673>
<rdar://problem/47448241>

Reviewed by Dean Jackson.

  • platform/graphics/gpu/cocoa/GPUBindGroupLayoutMetal.mm:

(WebCore::appendArgumentToArray): Use adoptNS() to fix the leak.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r240253 r240256  
     12019-01-22  David Kilzer  <ddkilzer@apple.com>
     2
     3        Leak of NSMutableArray (128 bytes) in com.apple.WebKit.WebContent running WebKit layout tests
     4        <https://webkit.org/b/193673>
     5        <rdar://problem/47448241>
     6
     7        Reviewed by Dean Jackson.
     8
     9        * platform/graphics/gpu/cocoa/GPUBindGroupLayoutMetal.mm:
     10        (WebCore::appendArgumentToArray): Use adoptNS() to fix the leak.
     11
    1122019-01-22  Zalan Bujtas  <zalan@apple.com>
    213
  • trunk/Source/WebCore/platform/graphics/gpu/cocoa/GPUBindGroupLayoutMetal.mm

    r240180 r240256  
    5656    BEGIN_BLOCK_OBJC_EXCEPTIONS;
    5757    if (!array)
    58         array = [[NSMutableArray alloc] initWithObjects:argument.get(), nil];
     58        array = adoptNS([[NSMutableArray alloc] initWithObjects:argument.get(), nil]);
    5959    else
    6060        [array addObject:argument.get()];
Note: See TracChangeset for help on using the changeset viewer.