mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-10 07:44:14 +01:00
Fixed behaviour of WMData objects regarding the destructor.
Merged WMCreateDataWithBytesNoCopy with WMCreateDataWithBytesAndDestructor.
This commit is contained in:
@@ -330,8 +330,7 @@ getSelectionData(Display *dpy, Window win, Atom where)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
wdata = WMCreateDataWithBytesAndDestructor(data, len,
|
||||
(WMFreeDataProc*)XFree);
|
||||
wdata = WMCreateDataWithBytesNoCopy(data, len, (WMFreeDataProc*)XFree);
|
||||
if (wdata == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user