[Webkit-unassigned] [Bug 235278] New: REGRESSION (r286603): Leak of three NSMutableDictionary objects each time rx::DisplayMtl::getMetalDeviceMatchingAttribute() is called

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 16 08:57:30 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=235278

            Bug ID: 235278
           Summary: REGRESSION (r286603): Leak of three
                    NSMutableDictionary objects each time
                    rx::DisplayMtl::getMetalDeviceMatchingAttribute() is
                    called
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: ANGLE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com,
                    kpiddington at apple.com
        Depends on: 220896

Leak of three NSMutableDictionary objects each time rx::DisplayMtl::getMetalDeviceMatchingAttribute() is called.

These three objects are created each time the method is called, but none of them are released before the method returns:

    NSMutableArray<id<MTLDevice>> *externalGPUs   = [[NSMutableArray alloc] init];
    NSMutableArray<id<MTLDevice>> *integratedGPUs = [[NSMutableArray alloc] init];
    NSMutableArray<id<MTLDevice>> *discreteGPUs   = [[NSMutableArray alloc] init];

Found by clang static analyzer.

Regressed with this commit:

    Roll ANGLE to include upstreamed Metal backend
    <https://bugs.webkit.org/show_bug.cgi?id=220896>
    <rdar://problem/73539682>
    <https://commits.webkit.org/r286603>


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=220896
[Bug 220896] Roll ANGLE to include upstreamed Metal backend
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220116/21a95281/attachment.htm>


More information about the webkit-unassigned mailing list