зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 22344. Removing FMMs in nsDOMAttribute.cpp. a=don r=kin
This commit is contained in:
Родитель
ec518ecd80
Коммит
896bf2e030
|
@ -57,7 +57,7 @@ RemoveAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
|||
NS_RELEASE(attrPrivate);
|
||||
NS_RELEASE(attr);
|
||||
}
|
||||
delete [] str;
|
||||
Recycle(str);
|
||||
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ nsDOMAttributeMap::SetNamedItem(nsIDOMNode *aNode, nsIDOMNode **aReturn)
|
|||
key = (char*)(*he)->key;
|
||||
PL_HashTableRemove(attrHash, buf);
|
||||
if (nsnull != key) {
|
||||
delete [] key;
|
||||
Recycle(key);
|
||||
}
|
||||
|
||||
result = oldAttribute->QueryInterface(kIDOMAttributePrivateIID,
|
||||
|
@ -404,7 +404,7 @@ nsDOMAttributeMap::RemoveNamedItem(const nsString& aName, nsIDOMNode** aReturn)
|
|||
|
||||
PL_HashTableRemove(attrHash, buf);
|
||||
if (nsnull != key) {
|
||||
delete [] key;
|
||||
Recycle(key);
|
||||
}
|
||||
|
||||
result = attribute->QueryInterface(kIDOMAttributePrivateIID,
|
||||
|
|
|
@ -57,7 +57,7 @@ RemoveAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
|||
NS_RELEASE(attrPrivate);
|
||||
NS_RELEASE(attr);
|
||||
}
|
||||
delete [] str;
|
||||
Recycle(str);
|
||||
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
@ -307,7 +307,7 @@ nsDOMAttributeMap::SetNamedItem(nsIDOMNode *aNode, nsIDOMNode **aReturn)
|
|||
key = (char*)(*he)->key;
|
||||
PL_HashTableRemove(attrHash, buf);
|
||||
if (nsnull != key) {
|
||||
delete [] key;
|
||||
Recycle(key);
|
||||
}
|
||||
|
||||
result = oldAttribute->QueryInterface(kIDOMAttributePrivateIID,
|
||||
|
@ -404,7 +404,7 @@ nsDOMAttributeMap::RemoveNamedItem(const nsString& aName, nsIDOMNode** aReturn)
|
|||
|
||||
PL_HashTableRemove(attrHash, buf);
|
||||
if (nsnull != key) {
|
||||
delete [] key;
|
||||
Recycle(key);
|
||||
}
|
||||
|
||||
result = attribute->QueryInterface(kIDOMAttributePrivateIID,
|
||||
|
|
Загрузка…
Ссылка в новой задаче