rem: free(data);
add: wfree(data);
context: void closeWindow(WMWidget *w, void *d){    BufferData *data = (BufferData*)d;    windowCount--;    if (windowCount == 0) {	exit(0);    } else {	WMDeleteTimerHandler(data->tid);	WMDestroyWidget(w);	free(data->buffer);	free(data->rects);	WMReleasePixmap(data->pixmap);	free(data);    }}