зеркало из https://github.com/mozilla/pjs.git
oops, don't free the arena pool if we never allocated it!
duh. fixes a shutdown crash
This commit is contained in:
Родитель
e11eb11c40
Коммит
5c7ef8c800
|
@ -277,10 +277,12 @@ void NS_PurgeAtomTable()
|
|||
#endif
|
||||
PL_DHashTableFinish(&gAtomTable);
|
||||
gAtomTable.entryCount = 0;
|
||||
|
||||
PL_FinishArenaPool(gStaticAtomArena);
|
||||
delete gStaticAtomArena;
|
||||
gStaticAtomArena = nsnull;
|
||||
|
||||
if (gStaticAtomArena) {
|
||||
PL_FinishArenaPool(gStaticAtomArena);
|
||||
delete gStaticAtomArena;
|
||||
gStaticAtomArena = nsnull;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче