Bug 209915

Summary: REGRESSION (r234685): Leak of CALayer in createCoreAnimationLayer() in PluginObjectMac.mm
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Tools / TestsAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 188245    
Bug Blocks:    
Attachments:
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2020-04-02 11:27:11 PDT
Leak of CALayer in createCoreAnimationLayer() in PluginObjectMac.mm.

CFTypeRef createCoreAnimationLayer()
{
    CALayer *caLayer = [[TestPluginLayer alloc] init];
    [...]
    return CFBridgingRetain(caLayer);
}

This function currently returns a +2 retained object instead of a +1 retained object.
Comment 1 David Kilzer (:ddkilzer) 2020-04-02 11:29:59 PDT
Created attachment 395282 [details]
Patch v1
Comment 2 David Kilzer (:ddkilzer) 2020-04-02 11:38:34 PDT
This is also the _last_ static analyzer warning in DumpRenderTree for the version of the clang static analyzer we're running!
Comment 3 EWS 2020-04-02 12:16:12 PDT
Committed r259403: <https://trac.webkit.org/changeset/259403>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 395282 [details].
Comment 4 Radar WebKit Bug Importer 2020-04-02 12:17:13 PDT
<rdar://problem/61220322>