oops, don't free the arena pool if we never allocated it!

duh.
fixes a shutdown crash
This commit is contained in:
alecf%netscape.com 2003-03-21 08:38:56 +00:00
Родитель e11eb11c40
Коммит 5c7ef8c800
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -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;
}
}
}