mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Don't leak the hash table used for the attribute map (#32196). Patch from shaver, r=beard
This commit is contained in:
parent
29ea87755d
commit
4b601df80e
@ -81,6 +81,7 @@ nsDOMAttributeMap::~nsDOMAttributeMap()
|
||||
{
|
||||
if (nsnull != mAttributes) {
|
||||
PL_HashTableEnumerateEntries(mAttributes, RemoveAttributes, nsnull);
|
||||
PL_HashTableDestroy(mAttributes);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,6 +81,7 @@ nsDOMAttributeMap::~nsDOMAttributeMap()
|
||||
{
|
||||
if (nsnull != mAttributes) {
|
||||
PL_HashTableEnumerateEntries(mAttributes, RemoveAttributes, nsnull);
|
||||
PL_HashTableDestroy(mAttributes);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user