зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1067505 - Make nsCategoryManager into a strong memory reporter. r=njn
The nsCategoryManager singleton lives until very late in shutdown, so the unregister always fails. It is okay to make it a strong reporter because it will always outlive the memory reporter manager anyways.
This commit is contained in:
Родитель
89f7f62c7c
Коммит
2fe4282ad3
|
@ -469,13 +469,11 @@ nsCategoryManager::nsCategoryManager()
|
|||
void
|
||||
nsCategoryManager::InitMemoryReporter()
|
||||
{
|
||||
RegisterWeakMemoryReporter(this);
|
||||
RegisterStrongMemoryReporter(this);
|
||||
}
|
||||
|
||||
nsCategoryManager::~nsCategoryManager()
|
||||
{
|
||||
UnregisterWeakMemoryReporter(this);
|
||||
|
||||
// the hashtable contains entries that must be deleted before the arena is
|
||||
// destroyed, or else you will have PRLocks undestroyed and other Really
|
||||
// Bad Stuff (TM)
|
||||
|
|
Загрузка…
Ссылка в новой задаче