b=559492 only dump leaked URLs on successful shutdown r=dbaron

This commit is contained in:
Karl Tomlinson 2010-05-13 14:34:38 +12:00
parent 8d05d0ece4
commit 10228ae185

View File

@ -343,7 +343,6 @@ nsStandardURL::InitGlobalObjects()
#ifdef DEBUG_DUMP_URLS_AT_SHUTDOWN
PR_INIT_CLIST(&gAllURLs);
atexit(DumpLeakedURLs);
#endif
}
@ -352,6 +351,11 @@ nsStandardURL::ShutdownGlobalObjects()
{
NS_IF_RELEASE(gIDN);
NS_IF_RELEASE(gCharsetMgr);
#ifdef DEBUG_DUMP_URLS_AT_SHUTDOWN
if (gInitialized)
atexit(DumpLeakedURLs);
#endif
}
//----------------------------------------------------------------------------