Skip to content

clutter: Keep a device reference with events

Olivier Fourdan requested to merge ofourdan/mutter:issue393 into master

If a device (virtual or real) is removed while there are remaining events queued for that device, the event loop may try to access the event freed memory.

To avoid the issue, add a reference to the device when the event is created or copied, and remove the reference once the device is freed.

Also, fixes virtual touchscreen being leaked in remote-desktop

Merge request reports