diff --git a/netwerk/base/src/nsStandardURL.cpp b/netwerk/base/src/nsStandardURL.cpp index 4825942322a..1cb6f353c53 100644 --- a/netwerk/base/src/nsStandardURL.cpp +++ b/netwerk/base/src/nsStandardURL.cpp @@ -343,6 +343,7 @@ nsStandardURL::InitGlobalObjects() #ifdef DEBUG_DUMP_URLS_AT_SHUTDOWN PR_INIT_CLIST(&gAllURLs); + atexit(DumpLeakedURLs); #endif } @@ -351,10 +352,6 @@ nsStandardURL::ShutdownGlobalObjects() { NS_IF_RELEASE(gIDN); NS_IF_RELEASE(gCharsetMgr); - -#ifdef DEBUG_DUMP_URLS_AT_SHUTDOWN - atexit(DumpLeakedURLs); -#endif } //----------------------------------------------------------------------------