Bug 1513542 - We need to use gAllURLsMutex before destructor of a static variable. r=valentin

Differential Revision: https://phabricator.services.mozilla.com/D16847

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dragana Damjanovic 2019-01-17 16:29:04 +00:00
Родитель 3ca4c1c35e
Коммит f7925654d4
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -286,6 +286,7 @@ void nsStandardURL::ShutdownGlobalObjects() {
// This instanciates a dummy class, and will trigger the class // This instanciates a dummy class, and will trigger the class
// destructor when libxul is unloaded. This is equivalent to atexit(), // destructor when libxul is unloaded. This is equivalent to atexit(),
// but gracefully handles dlclose(). // but gracefully handles dlclose().
StaticMutexAutoLock lock(gAllURLsMutex);
static DumpLeakedURLs d; static DumpLeakedURLs d;
} }
#endif #endif