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:
dbaron%fas.harvard.edu 2002-09-20 22:58:40 +00:00
parent a79cbaa707
commit 56b82cf05d

View File

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