<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>294661</bug_id>
          
          <creation_ts>2025-06-18 01:05:56 -0700</creation_ts>
          <short_desc>memory leaks in com.apple.WebKit.GPU</short_desc>
          <delta_ts>2025-06-18 07:16:28 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Jean-Yves Avenard [:jya]">jean-yves.avenard</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2124423</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-06-18 01:05:56 -0700</bug_when>
    <thetext>leaked stack is this one:

6   com.apple.WebCore                     0x1b3bc9e5c WTF::BlockPtr&lt;void (int, unsigned int, __CVBuffer*, CMTime, CMTime)&gt; WTF::BlockPtr&lt;void (int, unsigned int, __CVBuffer*, CMTime, CMTime)&gt;::fromCallable&lt;WebCore::WebCoreDecompressionSession::decodeSampleInternal(opaqueCMSampleBuffer*, bool)::$_2&gt;(WebCore::WebCoreDecompressionSession::decodeSampleInternal(opaqueCMSampleBuffer*, bool)::$_2)::&apos;lambda&apos;(void*, int, unsigned int, CVBuffer*, CMTime, CMTime)::invoke(void*, int, unsigned int, __CVBuffer*, CMTime, CMTime) + 248
5   com.apple.CoreMedia                   0x1991cbcac CMVideoFormatDescriptionCreateForImageBuffer + 848
4   com.apple.CoreMedia                   0x1991a7e10 CMVideoFormatDescriptionCreate + 128
3   com.apple.CoreMedia                   0x1991a8520 FigDerivedFormatDescriptionCreate + 740
2   com.apple.CoreFoundation              0x18cd429b0 _CFRuntimeCreateInstance + 880
1   libsystem_malloc.dylib                0x18cb136dc _malloc_zone_malloc + 64
0   libsystem_malloc.dylib                0x18cb2bc48 _malloc_zone_malloc_instrumented_or_legacy + 152 

Which I think is this code: https://searchfox.org/wubkat/rev/9235b1a61373f4234edd48dd00c30a0fda85faba/Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm#229-230</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124424</commentid>
    <comment_count>1</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-06-18 01:06:01 -0700</bug_when>
    <thetext>rdar://153503700</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124427</commentid>
    <comment_count>2</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2025-06-18 01:13:42 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/46891</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124478</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-06-18 07:16:27 -0700</bug_when>
    <thetext>Committed 296374@main (f04695c4dfda): &lt;https://commits.webkit.org/296374@main&gt;

Reviewed commits have been landed. Closing PR #46891 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>