зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1116358 - Directly call Release() on |this| when closing a GMP encoder/decoder proxies; r=cpearce
This is needed in order to avoid calling Release() on a smart pointer.
This commit is contained in:
Родитель
94821f46e8
Коммит
de3498d101
|
@ -149,7 +149,7 @@ GMPAudioDecoderParent::Close()
|
||||||
|
|
||||||
// In case this is the last reference
|
// In case this is the last reference
|
||||||
nsRefPtr<GMPAudioDecoderParent> kungfudeathgrip(this);
|
nsRefPtr<GMPAudioDecoderParent> kungfudeathgrip(this);
|
||||||
NS_RELEASE(kungfudeathgrip);
|
Release();
|
||||||
Shutdown();
|
Shutdown();
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
|
@ -76,7 +76,7 @@ GMPVideoDecoderParent::Close()
|
||||||
|
|
||||||
// In case this is the last reference
|
// In case this is the last reference
|
||||||
nsRefPtr<GMPVideoDecoderParent> kungfudeathgrip(this);
|
nsRefPtr<GMPVideoDecoderParent> kungfudeathgrip(this);
|
||||||
NS_RELEASE(kungfudeathgrip);
|
Release();
|
||||||
Shutdown();
|
Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,7 +91,7 @@ GMPVideoEncoderParent::Close()
|
||||||
|
|
||||||
// In case this is the last reference
|
// In case this is the last reference
|
||||||
nsRefPtr<GMPVideoEncoderParent> kungfudeathgrip(this);
|
nsRefPtr<GMPVideoEncoderParent> kungfudeathgrip(this);
|
||||||
NS_RELEASE(kungfudeathgrip);
|
Release();
|
||||||
Shutdown();
|
Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче