rem: wdata = WMCreateDataWithBytesNoCopy(data, len, (WMFreeDataProc*)XFree);
add: bpi = bits/8;  wdata = WMCreateDataWithBytesNoCopy(data, len*bpi, (WMFreeDataProc*)XFree);
context: getSelectionData(Display *dpy, Window win, Atom where){    WMData *wdata;    unsigned char *data;    Atom rtype;    unsigned bits;    unsigned long len, bytes;        if (XGetWindowProperty(dpy, win, where, 0, MAX_PROPERTY_SIZE, 			   False, AnyPropertyType, &rtype, &bits, &len,			   &bytes, &data)!=Success) {	return NULL;    }        wdata = WMCreateDataWithBytesNoCopy(data, len, (WMFreeDataProc*)XFree);    if (wdata == NULL) {	return NULL;    }    WMSetDataFormat(wdata, bits);        return wdata;}