mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 126107 - Freeing mismatched memory in nsWindowMediator::GetWindowForResource - r=valeski, sr=alecf, a=asa
This commit is contained in:
parent
8671f92b07
commit
cf3364dd42
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user