diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index 47fc35398988..1b36c13f34da 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -741,7 +741,8 @@ nsGlobalWindow::nsGlobalWindow(nsGlobalWindow *aOuterWindow) if (!PR_GetEnv("MOZ_QUIET")) { printf("++DOMWINDOW == %d (%p) [serial = %d] [outer = %p]\n", gRefCnt, static_cast(static_cast(this)), - gSerialCounter, static_cast(aOuterWindow)); + gSerialCounter, + static_cast(static_cast(aOuterWindow))); } #endif @@ -816,9 +817,10 @@ nsGlobalWindow::~nsGlobalWindow() } } + nsGlobalWindow* outer = static_cast(mOuterWindow.get()); printf("--DOMWINDOW == %d (%p) [serial = %d] [outer = %p] [url = %s]\n", gRefCnt, static_cast(static_cast(this)), - mSerial, static_cast(mOuterWindow.get()), url.get()); + mSerial, static_cast(static_cast(outer)), url.get()); } #endif