[webkit-changes] [WebKit/WebKit] 43e797: Cherry-pick fab6d531c24f. rdar://problem/105637444
Said Abou-Hallawa
noreply at github.com
Tue Feb 21 09:23:41 PST 2023
Branch: refs/heads/safari-7616.1.3-branch
Home: https://github.com/WebKit/WebKit
Commit: 43e7977ec2033b3a044695ef9c766be94210dca0
https://github.com/WebKit/WebKit/commit/43e7977ec2033b3a044695ef9c766be94210dca0
Author: Said Abou-Hallawa <said at apple.com>
Date: 2023-02-21 (Tue, 21 Feb 2023)
Changed paths:
M Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
Log Message:
-----------
Cherry-pick fab6d531c24f. rdar://problem/105637444
REGRESSION(260471 at main): The platform graphics context colorspace should not be adopted
https://bugs.webkit.org/show_bug.cgi?id=252629
rdar://105637444
Reviewed by Darin Adler.
When storing the return raw pointer of CGIOSurfaceContextGetColorSpace() or
CGBitmapContextGetColorSpace() in a RetainPtr, we should not be using adoptCF().
The refcount of the colorspace should be incremented when WebKit references it.
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::colorSpace const):
Canonical link: https://commits.webkit.org/260609@main
Canonical link: https://commits.webkit.org/260516.2@safari-7616.1.3-branch
More information about the webkit-changes
mailing list