mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1187055 - check the proxy being destroyed has a wrapper before cleaning it up r=davidb
All proxies should have wrappers on windows. So it doesn't make much sense that we need a null check here, however it seems to happen in the wild that proxy->GetWrapper() returns null.
This commit is contained in:
parent
b5310ade5f
commit
0e0d0d9ae0
@ -49,6 +49,10 @@ a11y::ProxyDestroyed(ProxyAccessible* aProxy)
|
||||
{
|
||||
ProxyAccessibleWrap* wrapper =
|
||||
reinterpret_cast<ProxyAccessibleWrap*>(aProxy->GetWrapper());
|
||||
MOZ_ASSERT(wrapper);
|
||||
if (!wrapper)
|
||||
return;
|
||||
|
||||
wrapper->Shutdown();
|
||||
aProxy->SetWrapper(0);
|
||||
wrapper->Release();
|
||||
|
Loading…
Reference in New Issue
Block a user