diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 4c5ed651507..ef9c3a3fbae 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -167,7 +167,7 @@ nsWebShell::nsWebShell() : nsDocShell() ++gNumberOfWebShells; #endif #ifdef DEBUG - printf("WEBSHELL+ = %ld\n", gNumberOfWebShells); + printf("++WEBSHELL == %ld\n", gNumberOfWebShells); #endif mThread = nsnull; @@ -213,7 +213,7 @@ nsWebShell::~nsWebShell() --gNumberOfWebShells; #endif #ifdef DEBUG - printf("WEBSHELL- = %ld\n", gNumberOfWebShells); + printf("--WEBSHELL == %ld\n", gNumberOfWebShells); #endif } diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index dface115f87..7a65cf5f969 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -217,6 +217,9 @@ GlobalWindowImpl::GlobalWindowImpl() if (gRefCnt++ == 0 || !gEntropyCollector) { CallGetService(NS_ENTROPYCOLLECTOR_CONTRACTID, &gEntropyCollector); } +#ifdef DEBUG + printf("++DOMWINDOW == %d\n", gRefCnt); +#endif if (!gPrefBranch) { CallGetService(NS_PREFSERVICE_CONTRACTID, &gPrefBranch); @@ -236,6 +239,9 @@ GlobalWindowImpl::~GlobalWindowImpl() if (!--gRefCnt) { NS_IF_RELEASE(gEntropyCollector); } +#ifdef DEBUG + printf("--DOMWINDOW == %d\n", gRefCnt); +#endif mDocument = nsnull; // Forces Release