зеркало из 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
|
||||
nsRefPtr<GMPAudioDecoderParent> kungfudeathgrip(this);
|
||||
NS_RELEASE(kungfudeathgrip);
|
||||
Release();
|
||||
Shutdown();
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -76,7 +76,7 @@ GMPVideoDecoderParent::Close()
|
|||
|
||||
// In case this is the last reference
|
||||
nsRefPtr<GMPVideoDecoderParent> kungfudeathgrip(this);
|
||||
NS_RELEASE(kungfudeathgrip);
|
||||
Release();
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ GMPVideoEncoderParent::Close()
|
|||
|
||||
// In case this is the last reference
|
||||
nsRefPtr<GMPVideoEncoderParent> kungfudeathgrip(this);
|
||||
NS_RELEASE(kungfudeathgrip);
|
||||
Release();
|
||||
Shutdown();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче