rem: WMFreeArray(lPtr->items);
add: if (lPtr->selectedItems) WMFreeArray(lPtr->selectedItems);  if (lPtr->items) WMFreeArray(lPtr->items);
context: destroyList(List *lPtr){    if (lPtr->idleID)        WMDeleteIdleHandler(lPtr->idleID);    lPtr->idleID = NULL;    if (lPtr->selectID)        WMDeleteTimerHandler(lPtr->selectID);    lPtr->selectID = NULL;    WMFreeArray(lPtr->items);    wfree(lPtr);}