mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +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;
|
++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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user