Don't leak the hash table used for the attribute map (#32196). Patch from shaver, r=beard

This commit is contained in:
jst%netscape.com 2000-03-25 00:54:30 +00:00
parent 29ea87755d
commit 4b601df80e
2 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,7 @@ nsDOMAttributeMap::~nsDOMAttributeMap()
{
if (nsnull != mAttributes) {
PL_HashTableEnumerateEntries(mAttributes, RemoveAttributes, nsnull);
PL_HashTableDestroy(mAttributes);
}
}

View File

@ -81,6 +81,7 @@ nsDOMAttributeMap::~nsDOMAttributeMap()
{
if (nsnull != mAttributes) {
PL_HashTableEnumerateEntries(mAttributes, RemoveAttributes, nsnull);
PL_HashTableDestroy(mAttributes);
}
}