Bug 126107 - Freeing mismatched memory in nsWindowMediator::GetWindowForResource - r=valeski, sr=alecf, a=asa

This commit is contained in:
dbradley%netscape.com 2002-03-18 02:10:14 +00:00
Родитель 57bd1ec104
Коммит b8c6c039f2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -822,7 +822,7 @@ nsWindowMediator::GetWindowForResource( const PRUnichar* inResource,
listEnd = mOldestWindow;
}
delete resourceString;
nsMemory::Free(resourceString);
// Rather than returning an error when you pass in crap, return NS_OK
// Doing this to avoid throwing a JS exception becasue event bubbling is not working as of 7/26/99
//return result;