[webkit-changes] [WebKit/WebKit] 9b0cf4: [WebCore] Release rawBlockBuffer if CMSampleBuffer...

Rose Silicon noreply at github.com
Tue Sep 3 10:22:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9b0cf46ee47942e1595fb00612df1053b4c3bbcd
      https://github.com/WebKit/WebKit/commit/9b0cf46ee47942e1595fb00612df1053b4c3bbcd
  Author: Rose <gfunni234 at gmail.com>
  Date:   2024-09-03 (Tue, 03 Sep 2024)

  Changed paths:
    M Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm

  Log Message:
  -----------
  [WebCore] Release rawBlockBuffer if CMSampleBufferSetDataBuffer fails
https://bugs.webkit.org/show_bug.cgi?id=279027

Reviewed by Said Abou-Hallawa.

rawBlockBuffer can end up being leaked if CMSampleBufferSetDataBuffer
fails, so just use adoptCF to ensure it is always freed.

* Source/WebCore/platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm:
  (WebCore::ImageDecoderAVFObjC::createFrameImageAtIndex): Assign
  rawBlockBuffer to a RetainPtr.

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list