FORWARD_TO_INNER_CREATE-stackcomptr
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 130 d12137ef66ee0e94446556b0a863afdc6d93f0dd
permissions -rw-r--r--
State as of now

diff --git a/dom/src/base/nsGlobalWindow.cpp b/dom/src/base/nsGlobalWindow.cpp
--- a/dom/src/base/nsGlobalWindow.cpp
+++ b/dom/src/base/nsGlobalWindow.cpp
@@ -326,8 +326,8 @@ PRInt32 gTimeoutCnt                     
       if (mIsClosed) {                                                        \
         return NS_ERROR_NOT_AVAILABLE;                                        \
       }                                                                       \
-      nsCOMPtr<nsIDOMDocument> doc;                                           \
-      nsresult fwdic_nr = GetDocument(getter_AddRefs(doc));                   \
+      nsIDOMDocument* doc;                                                    \
+      nsresult fwdic_nr = GetDocument(&doc);                                  \
       NS_ENSURE_SUCCESS(fwdic_nr, fwdic_nr);                                  \
       if (!mInnerWindow) {                                                    \
         return NS_ERROR_NOT_AVAILABLE;                                        \