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
parent 8671f92b07
commit cf3364dd42

View File

@ -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;