schema = ptr->schema->ToNewCString(); value = ptr->value->ToNewCString(); g += PR_snprintf(buffer+g, BUFLEN3-g, "%c%d%c%s%c%s", BREAK, ptr->count, BREAK, schema, BREAK, value); delete []schema; delete []value;
schema = ptr->schema->ToNewUnicode(); value = ptr->value->ToNewUnicode(); buffer += BREAK; buffer.Append(ptr->count,10); buffer += BREAK; buffer += schema; buffer += BREAK; buffer += value; Recycle(schema); Recycle(value);
WLLT_GetPrefillListForViewer(nsString& aPrefillList){  char *buffer = (char*)PR_Malloc(BUFLEN3);  int g = 0;  wallet_PrefillElement * ptr;  buffer[0] = '\0';  char * schema;  char * value;  PRInt32 count = LIST_COUNT(wallet_list);  for (PRInt32 i=0; i<count; i++) {    ptr = NS_STATIC_CAST(wallet_PrefillElement*, wallet_list->ElementAt(i));    schema = ptr->schema->ToNewCString();    value = ptr->value->ToNewCString();    g += PR_snprintf(buffer+g, BUFLEN3-g,      "%c%d%c%s%c%s",      BREAK, ptr->count,      BREAK, schema,      BREAK, value);    delete []schema;    delete []value;  }  char * urlCString;  urlCString = wallet_url.ToNewCString();  g += PR_snprintf(buffer+g, BUFLEN3-g,"%c%p%c%s", BREAK, wallet_list, BREAK, urlCString);  delete []urlCString;  aPrefillList = buffer;  PR_FREEIF(buffer);}