mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 974629 - Add pointer check to TextureClient::Finalize() r=nical
This commit is contained in:
parent
6e2138ee8a
commit
c753c172ad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user