for(PRInt32 i = 0; i<=count; i++) { theTimer = NS_STATIC_CAST(nsTimerImpl*, mIdleTimers[0]); mIdleTimers.RemoveElement(theTimer);
for (PRInt32 i = 0; i < count; i++) { theTimer = NS_STATIC_CAST(nsTimerImpl*, mIdleTimers[i]);
nsTimerManager::~nsTimerManager(){  gManager = nsnull;  PR_DestroyLock(mLock);  nsTimerImpl *theTimer;  PRInt32 count = mIdleTimers.Count();   for(PRInt32 i = 0; i<=count; i++) {    theTimer = NS_STATIC_CAST(nsTimerImpl*, mIdleTimers[0]);    mIdleTimers.RemoveElement(theTimer);    NS_IF_RELEASE(theTimer);  }}