Bug 684018 - Fix DOMWindow printfs. rs=Ms2ger
authorMounir Lamouri <mounir.lamouri@gmail.com>
Fri, 02 Sep 2011 12:11:45 +0200
changeset 76388 1c2522e75c04ed9cc66681dd4bd91f5c18f3e60f
parent 76387 ce43a8644bc03efa037d5ea6b5b3da69b5977edc
child 76393 41c38dd61294281f0cbc03d6666bffcae6880094
push id21099
push usermlamouri@mozilla.com
push dateFri, 02 Sep 2011 10:12:23 +0000
treeherdermozilla-central@1c2522e75c04 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
bugs684018
milestone9.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 684018 - Fix DOMWindow printfs. rs=Ms2ger
dom/base/nsGlobalWindow.cpp
--- a/dom/base/nsGlobalWindow.cpp
+++ b/dom/base/nsGlobalWindow.cpp
@@ -981,16 +981,18 @@ nsGlobalWindow::~nsGlobalWindow()
   // We have to check if sWindowsById isn't null because ::Shutdown might have
   // been called.
   if (sWindowsById) {
     NS_ASSERTION(sWindowsById->Get(mWindowID),
                  "This window should be in the hash table");
     sWindowsById->Remove(mWindowID);
   }
 
+  --gRefCnt;
+
 #ifdef DEBUG
   if (!PR_GetEnv("MOZ_QUIET")) {
     nsCAutoString url;
     if (mLastOpenedURI) {
       mLastOpenedURI->GetSpec(url);
     }
 
     printf("--DOMWINDOW == %d (%p) [serial = %d] [outer = %p] [url = %s]\n",