зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
0648a43142
Коммит
989a0a4d36
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче