mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
b=559492 only dump leaked URLs on successful shutdown r=dbaron
This commit is contained in:
parent
8d05d0ece4
commit
10228ae185
@ -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
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user