mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1137906 - Shutdown cached children when shutdown the document. r=surkov
This commit is contained in:
parent
714f54dae8
commit
ebca8598ef
@ -195,9 +195,17 @@ xpcAccessibleDocument::GetAccessible(Accessible* aAccessible)
|
||||
return xpcAcc;
|
||||
}
|
||||
|
||||
static PLDHashOperator
|
||||
ShutdownAndRemove(const Accessible* aKey, nsRefPtr<xpcAccessibleGeneric>& aValue,
|
||||
void* aUnused)
|
||||
{
|
||||
aValue->Shutdown();
|
||||
return PL_DHASH_REMOVE;
|
||||
}
|
||||
|
||||
void
|
||||
xpcAccessibleDocument::Shutdown()
|
||||
{
|
||||
mCache.Clear();
|
||||
mCache.Enumerate(ShutdownAndRemove, nullptr);
|
||||
xpcAccessibleGeneric::Shutdown();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user