зеркало из https://github.com/mozilla/gecko-dev.git
Bug 974629 - Add pointer check to TextureClient::Finalize() r=nical
This commit is contained in:
Родитель
f8f5c07e4a
Коммит
27b7fe9eb2
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче