rem: WMSetMenuItemRepresentedObject(item, GetStringForKey(fontOptions[i].option));
add: font= GetStringForKey(fontOptions[i].option); if (font) font= wstrdup(font); WMSetMenuItemRepresentedObject(item, font);
context: showData(_Panel *panel){    int i;    WMMenuItem *item;        for (i= 0; i < WMGetPopUpButtonNumberOfItems(panel->optionP); i++)    {        char *ofont;                item= WMGetPopUpButtonMenuItem(panel->optionP, i);                ofont= WMGetMenuItemRepresentedObject(item);        if (ofont)          wfree(ofont);                WMSetMenuItemRepresentedObject(item, GetStringForKey(fontOptions[i].option));    }    WMSetPopUpButtonSelectedItem(panel->optionP, 0);    selectedOption(panel->optionP, panel);}