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 57ec28b70e
commit 5a200cd733
+1 -1
View File
@@ -1871,7 +1871,7 @@ NS_IMETHODIMP
nsWebShellWindow::GetWidget(nsIWidget *& aWidget)
{
aWidget = mWindow;
NS_ADDREF(mWindow);
NS_IF_ADDREF(mWindow);
return NS_OK;
}