mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711866 - Don't null deref when shutting down during media load algorithm. r=roc
This commit is contained in:
parent
09267e90dd
commit
756594de5d
@ -302,6 +302,11 @@ NS_IMETHODIMP nsHTMLMediaElement::MediaLoadListener::OnStartRequest(nsIRequest*
|
||||
{
|
||||
nsContentUtils::UnregisterShutdownObserver(this);
|
||||
|
||||
if (!mElement) {
|
||||
// We've been notified by the shutdown observer, and are shutting down.
|
||||
return NS_BINDING_ABORTED;
|
||||
}
|
||||
|
||||
// The element is only needed until we've had a chance to call
|
||||
// InitializeDecoderForChannel. So make sure mElement is cleared here.
|
||||
nsRefPtr<nsHTMLMediaElement> element;
|
||||
|
Loading…
Reference in New Issue
Block a user