add: if (lPtr->doubleBuffer) XFreePixmap(lPtr->view->screen->display, lPtr->doubleBuffer);
context: destroyList(List *lPtr){    if (lPtr->idleID)        WMDeleteIdleHandler(lPtr->idleID);    lPtr->idleID = NULL;    if (lPtr->selectID)        WMDeleteTimerHandler(lPtr->selectID);    lPtr->selectID = NULL;    if (lPtr->selectedItems)        WMFreeArray(lPtr->selectedItems);    if (lPtr->items)        WMFreeArray(lPtr->items);    wfree(lPtr);}