delete ptr->schema; delete ptr->value; wallet_PrefillElement_list->RemoveElement(ptr); delete ptr;
delete mapElementPtr->schema; delete mapElementPtr->value; wallet_PrefillElement_list->RemoveElement(mapElementPtr); delete mapElementPtr;
wallet_ReleasePrefillElementList(nsVoidArray * wallet_PrefillElement_list) {  if (wallet_PrefillElement_list) {    wallet_PrefillElement * ptr;    PRInt32 count = LIST_COUNT(wallet_PrefillElement_list);    for (PRInt32 i=count-1; i>=0; i--) {      ptr = NS_STATIC_CAST(wallet_PrefillElement*, wallet_PrefillElement_list->ElementAt(i));      if (ptr->inputElement) {        NS_RELEASE(ptr->inputElement);      } else {        NS_RELEASE(ptr->selectElement);      }      delete ptr->schema;      delete ptr->value;      wallet_PrefillElement_list->RemoveElement(ptr);      delete ptr;    }  }}