mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
83bdcbc379
commit
01075e707f
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user