Don't crash when closing the not-so-hidden window.

This commit is contained in:
sfraser%netscape.com 1999-09-17 19:56:53 +00:00
parent aee7910bc5
commit ee712ef0b4

View File

@ -1871,7 +1871,7 @@ NS_IMETHODIMP
nsWebShellWindow::GetWidget(nsIWidget *& aWidget)
{
aWidget = mWindow;
NS_ADDREF(mWindow);
NS_IF_ADDREF(mWindow);
return NS_OK;
}