зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
0843a2a966
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче