Closed kvark closed 4 months ago
Looking at the C code, xcb_register_special_event
allocates memory for the event and xcb_unregister_special_event
frees the memory.
So the Copy
and Clone
traits imply a risk of use after free.
The only correct way would be to have reference in wait and poll.
It would be a Semver breaking change though. But current API is broken and unusable anyway.
closing, fixed by #261
Fixes #252
The other way we could approach this is having wait() and poll() to accept a reference to the special event.