зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ebb2d59df7
Коммит
3477150c86
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче