mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 1137906 - Shutdown cached children when shutdown the document. r=surkov
--HG-- extra : rebase_source : 6e656d3c3071d2aecccf87500deacc896734eba4
This commit is contained in:
parent
6b3a5ec77d
commit
cdecb37b02
@ -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…
x
Reference in New Issue
Block a user