mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 823784 - B2G crash: nsHTMLMediaElement::UpdateAudioChannelPlayingState r=smaug
Don't delete a smart pointer; it can result in a double-free.
This commit is contained in:
parent
621ea014c0
commit
3cf9cf8018
@ -59,7 +59,6 @@ AudioChannelService::Shutdown()
|
||||
}
|
||||
|
||||
if (gAudioChannelService) {
|
||||
delete gAudioChannelService;
|
||||
gAudioChannelService = nullptr;
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,6 @@ void
|
||||
AudioChannelServiceChild::Shutdown()
|
||||
{
|
||||
if (gAudioChannelServiceChild) {
|
||||
delete gAudioChannelServiceChild;
|
||||
gAudioChannelServiceChild = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user