Removed Release of mTopLevelWidget in the handling of the "inGoAway" event. Fixes bug 3900; part of fix for bug 3676. Wants to be part of M3 build. r:pierre,sdagley. a:chofmann,cyeh.

This commit is contained in:
danm%netscape.com 1999-03-18 19:05:32 +00:00
parent 6811d49530
commit e4dcb184d6

View File

@ -391,12 +391,6 @@ PRBool nsMacEventHandler::HandleMouseDownEvent(
case inGoAway:
{
mTopLevelWidget->Destroy();
/* terrible hack alert: this Release matches the Addref that was done when the
window widget was created by the nsWebShellWindow. It'd be a lot cleaner to
ask the webshellwindow to release its window, but I feel even worse about
getting to the nsWebShellWindow from the nsWindow, so here goes:
*/
NS_RELEASE(mTopLevelWidget);
break;
}