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
Родитель f8f5c07e4a
Коммит 27b7fe9eb2
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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