[webkit-changes] [WebKit/WebKit] de415e: Leak of MTLSharedTextureHandle in GraphicsContextG...

Commit Queue noreply at github.com
Wed Jun 14 18:35:33 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: de415e8be6193676088cc4fd794d13e5b96c5db2
      https://github.com/WebKit/WebKit/commit/de415e8be6193676088cc4fd794d13e5b96c5db2
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm

  Log Message:
  -----------
  Leak of MTLSharedTextureHandle in GraphicsContextGLCocoa.mm
https://bugs.webkit.org/show_bug.cgi?id=258090
<rdar://110796945>

Reviewed by Dan Glastonbury.

Add back use of adoptNS() when creating MTLSharedTextureHandle objects
to fix the leaks.  This was accidentally removed by 264712 at main.

* Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm:
(WebCore::GraphicsContextGLCocoa::createAndBindExternalImage):

Canonical link: https://commits.webkit.org/265174@main




More information about the webkit-changes mailing list