Make WEBSHELL printfs use clearer notation and add DOMWINDOW printfs, which will actually show some leaks. b=231384 r=bryner sr=brendan

This commit is contained in:
dbaron%dbaron.org 2004-01-21 21:13:39 +00:00
parent 83bdcbc379
commit 01075e707f
2 changed files with 8 additions and 2 deletions

View File

@ -167,7 +167,7 @@ nsWebShell::nsWebShell() : nsDocShell()
++gNumberOfWebShells; ++gNumberOfWebShells;
#endif #endif
#ifdef DEBUG #ifdef DEBUG
printf("WEBSHELL+ = %ld\n", gNumberOfWebShells); printf("++WEBSHELL == %ld\n", gNumberOfWebShells);
#endif #endif
mThread = nsnull; mThread = nsnull;
@ -213,7 +213,7 @@ nsWebShell::~nsWebShell()
--gNumberOfWebShells; --gNumberOfWebShells;
#endif #endif
#ifdef DEBUG #ifdef DEBUG
printf("WEBSHELL- = %ld\n", gNumberOfWebShells); printf("--WEBSHELL == %ld\n", gNumberOfWebShells);
#endif #endif
} }

View File

@ -217,6 +217,9 @@ GlobalWindowImpl::GlobalWindowImpl()
if (gRefCnt++ == 0 || !gEntropyCollector) { if (gRefCnt++ == 0 || !gEntropyCollector) {
CallGetService(NS_ENTROPYCOLLECTOR_CONTRACTID, &gEntropyCollector); CallGetService(NS_ENTROPYCOLLECTOR_CONTRACTID, &gEntropyCollector);
} }
#ifdef DEBUG
printf("++DOMWINDOW == %d\n", gRefCnt);
#endif
if (!gPrefBranch) { if (!gPrefBranch) {
CallGetService(NS_PREFSERVICE_CONTRACTID, &gPrefBranch); CallGetService(NS_PREFSERVICE_CONTRACTID, &gPrefBranch);
@ -236,6 +239,9 @@ GlobalWindowImpl::~GlobalWindowImpl()
if (!--gRefCnt) { if (!--gRefCnt) {
NS_IF_RELEASE(gEntropyCollector); NS_IF_RELEASE(gEntropyCollector);
} }
#ifdef DEBUG
printf("--DOMWINDOW == %d\n", gRefCnt);
#endif
mDocument = nsnull; // Forces Release mDocument = nsnull; // Forces Release