From 9280bd41402bd275eb4c815afce77ba4c982818a Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 21 Jan 2004 21:13:39 +0000 Subject: [PATCH] Make WEBSHELL printfs use clearer notation and add DOMWINDOW printfs, which will actually show some leaks. b=231384 r=bryner sr=brendan git-svn-id: svn://10.0.0.236/trunk@151655 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 4 ++-- mozilla/dom/src/base/nsGlobalWindow.cpp | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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