mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00
bug 1279984 - allow destroying proxies without a wrapper r=davidb
We can sometimes call ProxyDestroyed() on a proxy that never had a wrapper set up so we should just bail out of ProxyDestroyed() in that case because there is nothing to do.
This commit is contained in:
parent
0843a2a966
commit
e346d8b93e
@ -1156,6 +1156,10 @@ void
|
||||
a11y::ProxyDestroyed(ProxyAccessible* aProxy)
|
||||
{
|
||||
auto obj = reinterpret_cast<MaiAtkObject*>(aProxy->GetWrapper() & ~IS_PROXY);
|
||||
if (!obj) {
|
||||
return;
|
||||
}
|
||||
|
||||
obj->Shutdown();
|
||||
g_object_unref(obj);
|
||||
aProxy->SetWrapper(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user