diff --git a/content/base/src/nsDOMAttributeMap.cpp b/content/base/src/nsDOMAttributeMap.cpp index 34c8950ce41..d71bf8be126 100644 --- a/content/base/src/nsDOMAttributeMap.cpp +++ b/content/base/src/nsDOMAttributeMap.cpp @@ -81,6 +81,7 @@ nsDOMAttributeMap::~nsDOMAttributeMap() { if (nsnull != mAttributes) { PL_HashTableEnumerateEntries(mAttributes, RemoveAttributes, nsnull); + PL_HashTableDestroy(mAttributes); } } diff --git a/layout/base/src/nsDOMAttributeMap.cpp b/layout/base/src/nsDOMAttributeMap.cpp index 34c8950ce41..d71bf8be126 100644 --- a/layout/base/src/nsDOMAttributeMap.cpp +++ b/layout/base/src/nsDOMAttributeMap.cpp @@ -81,6 +81,7 @@ nsDOMAttributeMap::~nsDOMAttributeMap() { if (nsnull != mAttributes) { PL_HashTableEnumerateEntries(mAttributes, RemoveAttributes, nsnull); + PL_HashTableDestroy(mAttributes); } }