Bug 974629 - Add pointer check to TextureClient::Finalize() r=nical

This commit is contained in:
Sotaro Ikeda 2014-02-26 13:34:41 -08:00
parent 6e2138ee8a
commit c753c172ad

View File

@ -305,8 +305,9 @@ TextureClient::Finalize()
if (actor) {
// this will call ForceRemove in the right thread, using a sync proxy if needed
actor->GetForwarder()->RemoveTexture(this);
if (actor->GetForwarder()) {
actor->GetForwarder()->RemoveTexture(this);
}
// The actor has a raw pointer to us, actor->mTextureClient. Null it before we die.
actor->mTextureClient = nullptr;
}