GNOME Bugzilla – Bug 747263
wayland-keyboard: Disconnect from backend signals on release
Last modified: 2015-04-09 13:40:58 UTC
Fixes the crash reported in https://bugzilla.redhat.com/show_bug.cgi?id=1208526 .
Created attachment 300849 [details] [review] wayland-keyboard: Disconnect from backend signals on release Otherwise we'll access freed memory in the handlers. The wayland keyboard is released when the seat loses the keyboard capability which happens when leaving the VT so if there are keymap changes while switched away from the VT we would crash.
Review of attachment 300849 [details] [review]: I would prefer explicitly disconnecting -- either by func or by ID -- disconnecting by data is a bit too magical for me. That said, this needs to be fixed.
disconnect_by_func looks better/safer indeed. Pushing, thanks Attachment 300849 [details] pushed as 4aa74af - wayland-keyboard: Disconnect from backend signals on release