diff --git a/xpcom/ds/nsAtomTable.cpp b/xpcom/ds/nsAtomTable.cpp index 55761cb7a5d..91cd6433340 100644 --- a/xpcom/ds/nsAtomTable.cpp +++ b/xpcom/ds/nsAtomTable.cpp @@ -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; + } } }