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:
Ehsan Akhgari 2014-12-25 16:21:34 -05:00
parent ad4eb3f1df
commit 3d107583b2
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -76,7 +76,7 @@ GMPVideoDecoderParent::Close()
// In case this is the last reference
nsRefPtr<GMPVideoDecoderParent> kungfudeathgrip(this);
NS_RELEASE(kungfudeathgrip);
Release();
Shutdown();
}

View File

@ -91,7 +91,7 @@ GMPVideoEncoderParent::Close()
// In case this is the last reference
nsRefPtr<GMPVideoEncoderParent> kungfudeathgrip(this);
NS_RELEASE(kungfudeathgrip);
Release();
Shutdown();
}