delete[] gone;
Wallet_SignonViewerReturn (nsAutoString results) {    wallet_MapElement *url;    char * gone;    /* step through all nopreviews and delete those that are in the sequence */    gone = SI_FindValueInArgs(results, "|goneP|");    PRInt32 count = LIST_COUNT(wallet_URL_list);    while (count>0) {      count--;      url = NS_STATIC_CAST(wallet_MapElement*, wallet_URL_list->ElementAt(count));      if (url && SI_InSequence(gone, count)) {        url->item2.SetCharAt('n', NO_PREVIEW);        if (url->item2.CharAt(NO_CAPTURE) == 'n') {          wallet_FreeURL(url);          wallet_WriteToFile("URL.tbl", wallet_URL_list, PR_FALSE);        }      }    }    delete[] gone;    /* step through all nocaptures and delete those that are in the sequence */    gone = SI_FindValueInArgs(results, "|goneC|");    PRInt32 count2 = LIST_COUNT(wallet_URL_list);    while (count2>0) {      count2--;      url = NS_STATIC_CAST(wallet_MapElement*, wallet_URL_list->ElementAt(count2));      if (url && SI_InSequence(gone, count)) {        url->item2.SetCharAt('n', NO_CAPTURE);        if (url->item2.CharAt(NO_PREVIEW) == 'n') {          wallet_FreeURL(url);          wallet_WriteToFile("URL.tbl", wallet_URL_list, PR_FALSE);        }      }    }    delete[] gone;}