mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 22:07:41 +00:00
Fix leak of nsDOMEvent (and thus nsPresContext) caused by the presence of frames or iframes by avoiding early return so we don't skip necessary manual refcounting. b=160268 r=peterv sr=jst
This commit is contained in:
parent
a79cbaa707
commit
56b82cf05d
@ -815,8 +815,8 @@ GlobalWindowImpl::HandleDOMEvent(nsIPresContext* aPresContext,
|
||||
// event we don't need a pres context anyway so we just pass
|
||||
// null as the pres context all the time here.
|
||||
|
||||
return content->HandleDOMEvent(nsnull, &event, nsnull,
|
||||
NS_EVENT_FLAG_INIT, &status);
|
||||
ret = content->HandleDOMEvent(nsnull, &event, nsnull,
|
||||
NS_EVENT_FLAG_INIT, &status);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user