PRBool okay = gExitRoutines.AppendElement((void*)exitRoutine);
if (!gExitRoutines) { gExitRoutines = new nsVoidArray(); if (!gExitRoutines) { NS_WARNING("Failed to allocate gExitRoutines"); return NS_ERROR_FAILURE; } }  PRBool okay = gExitRoutines->AppendElement((void*)exitRoutine);
NS_RegisterXPCOMExitRoutine(XPCOMExitRoutine exitRoutine, PRUint32 priority){    // priority are not used right now.  It will need to be implemented as more    // classes are moved into the glue library --dougt    PRBool okay = gExitRoutines.AppendElement((void*)exitRoutine);    return okay ? NS_OK : NS_ERROR_FAILURE;}