If DETECT_WEBSHELL_LEAKS is defined, check to see if webshells are leaked at shutdown. If so, dump a message to the console.

This commit is contained in:
nisheeth%netscape.com 1999-09-22 01:25:40 +00:00
Родитель 1965d582ce
Коммит 0572a3efca
2 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -79,6 +79,9 @@ LCFLAGS = \
LLIBS= \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\raptorgfxwin.lib \
!ifdef DETECT_WEBSHELL_LEAKS
$(DIST)\lib\raptorweb.lib \
!endif
!ifdef NECKO
$(DIST)\lib\neckoutil_s.lib \
!else

Просмотреть файл

@ -713,13 +713,10 @@ int main(int argc, char* argv[])
// calling this explicitly will cut down on a large number of leaks we're
// seeing:
}
#if 0
if ( unsigned long count = NS_TotalWebShellsInExistence() )
{
printf("!!!Warning: there are still %l instances of nsWebShell outstanding. OK?\n", count);
char cc;
scanf("%c", &cc);
#ifdef DETECT_WEBSHELL_LEAKS
if ( unsigned long count = NS_TotalWebShellsInExistence() ) {
printf("XXX WARNING: Number of webshells being leaked: %d \n", count);
}
#endif