Title: [294004] trunk/Source/WebCore
- Revision
- 294004
- Author
- [email protected]
- Date
- 2022-05-10 00:45:49 -0700 (Tue, 10 May 2022)
Log Message
com.apple.WebKit.GPU leaks CMBlockBuffer
https://bugs.webkit.org/show_bug.cgi?id=240267
rdar://92655222
Patch by Jean-Yves Avenard <[email protected]> on 2022-05-09
Reviewed by Jer Noble.
* platform/graphics/cocoa/CMUtilities.mm:
(WebCore::toCMSampleBuffer): adopt newly created CMBlockBuffer rather than increase the refcount.
# Please populate the above commit message. Lines starting
# with '#' will be ignored
# com.apple.WebKit.GPU leaks CMBlockBuffer
# https://bugs.webkit.org/show_bug.cgi?id=240267
# rdar://92655222
#
# Reviewed by Jer Noble.
#
# * platform/graphics/cocoa/CMUtilities.mm:
# (WebCore::toCMSampleBuffer): adopt newly created CMBlockBuffer rather than increase the refcount.
# On branch bz/240267
# Your branch is ahead of 'origin/main' by 1 commit.
# (use "git push" to publish your local commits)
#
# Changes to be committed:
# (use "git restore --staged <file>..." to unstage)
# modified: Source/WebCore/ChangeLog
#
# Please populate the above commit message. Lines starting
# with '#' will be ignored
# On branch bz/240267
# Your branch is ahead of 'origin/main' by 1 commit.
# (use "git push" to publish your local commits)
#
# nothing to commit, working tree clean
Canonical link: https://commits.webkit.org/250440@main
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (294003 => 294004)
--- trunk/Source/WebCore/ChangeLog 2022-05-10 06:53:52 UTC (rev 294003)
+++ trunk/Source/WebCore/ChangeLog 2022-05-10 07:45:49 UTC (rev 294004)
@@ -1,3 +1,14 @@
+2022-05-09 Jean-Yves Avenard <[email protected]>
+
+ com.apple.WebKit.GPU leaks CMBlockBuffer
+ https://bugs.webkit.org/show_bug.cgi?id=240267
+ rdar://92655222
+
+ Reviewed by Jer Noble.
+
+ * platform/graphics/cocoa/CMUtilities.mm:
+ (WebCore::toCMSampleBuffer): adopt newly created CMBlockBuffer rather than increase the refcount.
+
2022-05-09 Rob Buis <[email protected]>
Check if node is connected after calling mergeWithNeighboringLists
Modified: trunk/Source/WebCore/platform/graphics/cocoa/CMUtilities.mm (294003 => 294004)
--- trunk/Source/WebCore/platform/graphics/cocoa/CMUtilities.mm 2022-05-10 06:53:52 UTC (rev 294003)
+++ trunk/Source/WebCore/platform/graphics/cocoa/CMUtilities.mm 2022-05-10 07:45:49 UTC (rev 294004)
@@ -223,7 +223,7 @@
auto err = PAL::CMBlockBufferCreateEmpty(kCFAllocatorDefault, samples.size(), 0, &rawBlockBuffer);
if (err != kCMBlockBufferNoErr || !rawBlockBuffer)
return makeUnexpected("CMBlockBufferCreateEmpty failed");
- completeBlockBuffers = rawBlockBuffer;
+ completeBlockBuffers = adoptCF(rawBlockBuffer);
}
Vector<CMSampleTimingInfo> packetTimings;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes