зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
3ca4c1c35e
Коммит
f7925654d4
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче