8000 imported/w3c/web-platform-tests/feature-policy/reporting/encrypted-me… · WebKit/WebKit@b7cf9b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b7cf9b0

Browse files
committed
imported/w3c/web-platform-tests/feature-policy/reporting/encrypted-media-reporting.https.html is a constant crash
https://bugs.webkit.org/show_bug.cgi?id=250534 rdar://104200900 Reviewed by Tim Horton. On iOS AVStreamDataParser::init will manual release the instance. If that pointer was stored in a RetainPtr it would lead to a double-release. * Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferParserAVFObjC.mm: (WebCore::SourceBufferParserAVFObjC::isContentTypeSupported): Canonical link: https://commits.webkit.org/258861@main
1 parent b5e525c commit b7cf9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferParserAVFObjC.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ AtomString codec() const override
209209
MediaPlayerEnums::SupportsType SourceBufferParserAVFObjC::isContentTypeSupported(const ContentType& type)
210210
{
211211
// Check that AVStreamDataParser is in a functional state.
212-
if (!PAL::getAVStreamDataParserClass() || ![adoptNS(PAL::allocAVStreamDataParserInstance()) init])
212+
if (!PAL::getAVStreamDataParserClass() || !adoptNS([PAL::allocAVStreamDataParserInstance() init]))
213213
return MediaPlayerEnums::SupportsType::IsNotSupported;
214214

215215
String extendedType = type.raw();

0 commit comments

Comments
 (0)
0