Replaced delete operator calls with Recycle(). R=joki

git-svn-id: svn://10.0.0.236/trunk@51849 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1999-10-26 14:56:41 +00:00
parent 252d9255a6
commit 1291c59ad4
2 changed files with 6 additions and 6 deletions

View File

@@ -2327,7 +2327,7 @@ nsHTMLDocument::RemoveStrings(PLHashEntry *he, PRIntn i, void *arg)
{
char *str = (char *)he->key;
delete [] str;
Recycle(str);
return HT_ENUMERATE_REMOVE;
}
@@ -2380,7 +2380,7 @@ nsHTMLDocument::UnregisterNamedItems(nsIContent *aContent, PRBool aInForm)
char *nameStr = value.ToNewCString();
// XXX What about the string held in the hash table entry
PL_HashTableRemove(mNamedItems, nameStr);
delete [] nameStr;
Recycle(nameStr);
}
inForm = aInForm || (tag == nsHTMLAtoms::form);
@@ -2481,7 +2481,7 @@ nsHTMLDocument::NamedItem(const nsString& aName, nsIDOMElement** aReturn)
char *str = aName.ToNewCString();
content = (nsIContent *)PL_HashTableLookup(mNamedItems, str);
delete [] str;
Recycle(str);
}
if (nsnull != content) {