diff --git a/mailnews/base/src/nsMsgStatusFeedback.cpp b/mailnews/base/src/nsMsgStatusFeedback.cpp index 795abdc8800..3db0b9da508 100644 --- a/mailnews/base/src/nsMsgStatusFeedback.cpp +++ b/mailnews/base/src/nsMsgStatusFeedback.cpp @@ -60,8 +60,9 @@ nsMsgStatusFeedback::OnStartDocumentLoad(nsIDocumentLoader* aLoader, nsIURI* aUR if (mWindow) { + nsIDOMWindow *aWindow = mWindow; nsCOMPtr - globalScript(do_QueryInterface(mWindow)); + globalScript(do_QueryInterface(aWindow)); nsCOMPtr webshell, rootWebshell; if (globalScript) globalScript->GetWebShell(getter_AddRefs(webshell));