mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-09 11:12:29 +02:00
Fixed behaviour of WMData objects regarding the destructor.
Merged WMCreateDataWithBytesNoCopy with WMCreateDataWithBytesAndDestructor.
This commit is contained in:
1 parent
0b87b7fab9
commit
b8ca9e2b64
3 files changed
+21
-40
No files matched your search
+1
-2
@@ -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