int err=PtAppRemoveFd(NULL,mHead->mQueue->GetEventQueueSelectFD());
int err=PtAppRemoveFd(NULL,mHead->mToken);
EventQueueTokenQueue::~EventQueueTokenQueue(){  PR_LOG(PhWidLog, PR_LOG_DEBUG, ("EventQueueTokenQueue::~EventQueueTokenQueue Destructor\n"));  // if we reach this point with an empty token queue, well, fab. however,  // we expect the first event queue to still be active. so we take  // special care to unhook that queue (not that failing to do so seems  // to hurt anything). more queues than that would be an error.//NS_ASSERTION(!mHead || !mHead->mNext, "event queue token list deleted when not empty");  // (and skip the assertion for now. we're leaking event queues because they  // are referenced by things that leak, so this assertion goes off a lot.)  if (mHead)  {    int err=PtAppRemoveFd(NULL,mHead->mQueue->GetEventQueueSelectFD());    if (err==-1)    {	  printf ("nsAppShell::~EventQueueTokenQueue Run Error calling PtAppRemoveFd\n");	  abort();    }    delete mHead;    // and leak the rest. it's an error, anyway  }}