Undo my previous change, which was wrong. PR_TRUE is the correct way to continue enumeration for |nsHashtable|s. I don't know what is causing the leak (bug 43707). r=hyatt

This commit is contained in:
dbaron%fas.harvard.edu 2000-06-26 02:39:49 +00:00
parent e695347dab
commit a21be0269b
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ static PRBool PR_CALLBACK DeleteClasses(nsHashKey* aKey, void* aValue, void* clo
JSClass* c = (JSClass*)aValue;
nsMemory::Free(c->name);
delete c;
return HT_ENUMERATE_NEXT;
return PR_TRUE; // return PR_TRUE to continue for nsHashtable enumerator
}
nsXBLService::~nsXBLService(void)

View File

@ -180,7 +180,7 @@ static PRBool PR_CALLBACK DeleteClasses(nsHashKey* aKey, void* aValue, void* clo
JSClass* c = (JSClass*)aValue;
nsMemory::Free(c->name);
delete c;
return HT_ENUMERATE_NEXT;
return PR_TRUE; // return PR_TRUE to continue for nsHashtable enumerator
}
nsXBLService::~nsXBLService(void)