зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1220646 - don't access mOwner which is invalid after shutdown. r=kinetik.
This commit is contained in:
Родитель
2b8162e7ec
Коммит
399eff85fc
|
@ -745,6 +745,9 @@ MediaDecoder::NotifyDataEnded(nsresult aStatus)
|
|||
{
|
||||
RefPtr<MediaDecoder> self = this;
|
||||
nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction([=] () {
|
||||
if (self->mShuttingDown) {
|
||||
return;
|
||||
}
|
||||
self->NotifyDownloadEnded(aStatus);
|
||||
if (NS_SUCCEEDED(aStatus)) {
|
||||
HTMLMediaElement* element = self->mOwner->GetMediaElement();
|
||||
|
|
Загрузка…
Ссылка в новой задаче