rem: WMListItem *item;
context: WMClearList(WMList *lPtr){    WMListItem *item;    int oldSelected = lPtr->selectedItem;    int i;    for (i = 0; i < WMGetBagItemCount(lPtr->items); i++) {	item = WMGetFromBag(lPtr->items, i);	wfree(item->text);	wfree(item);    }    WMEmptyBag(lPtr->items);    lPtr->topItem = 0;    lPtr->selectedItem = -1;    if (!lPtr->idleID) {	WMDeleteIdleHandler(lPtr->idleID);	lPtr->idleID = NULL;    }    if (lPtr->view->flags.realized) {	updateScroller(lPtr);    }    if (oldSelected != -1)        WMPostNotificationName(WMListSelectionDidChangeNotification, lPtr,                               (void*)-1);}