зеркало из https://github.com/mozilla/pjs.git
Fix leak by continuing to enumerate. r=hyatt
This commit is contained in:
Родитель
7cb5cefd3f
Коммит
397dfbd37f
|
@ -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 PR_TRUE;
|
||||
return HT_ENUMERATE_NEXT;
|
||||
}
|
||||
|
||||
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 PR_TRUE;
|
||||
return HT_ENUMERATE_NEXT;
|
||||
}
|
||||
|
||||
nsXBLService::~nsXBLService(void)
|
||||
|
|
Загрузка…
Ссылка в новой задаче