mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
ad4eb3f1df
commit
3d107583b2
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user