NS_IF_RELEASE(mAppShell); NS_IF_RELEASE(mWindowList);
mDeleteCalled = PR_TRUE; nsCOMPtr<nsIWebShellWindow> hiddenWin(do_QueryInterface(mHiddenWindow)); if(hiddenWin) { ClearXPConnectSafeContext(); hiddenWin->Close(); }
nsAppShellService::~nsAppShellService(){  NS_IF_RELEASE(mAppShell);  NS_IF_RELEASE(mWindowList);}