rem: int i;
context: prepareForClose(_Panel *panel){    proplist_t textureList;    proplist_t texture;    int i;    TextureListItem *titem;    WMListItem *item;    WMUserDefaults *udb = WMGetStandardUserDefaults();    textureList = PLMakeArrayFromElements(NULL, NULL);    /* store list of textures */    for (i = 7; i < WMGetListNumberOfRows(panel->texLs); i++) {	item = WMGetListItem(panel->texLs, i);	titem = (TextureListItem*)item->clientData;	texture = PLMakeArrayFromElements(PLMakeString(titem->title),					  PLRetain(titem->prop),					  PLMakeString(titem->path),					  NULL);	PLAppendArrayElement(textureList, texture);    }    WMSetUDObjectForKey(udb, textureList, "TextureList");    PLRelease(textureList);    WMSynchronizeUserDefaults(udb);}