wayland: Don't insta-crash when a surface gets disposed
authorBenjamin Otte <otte@redhat.com>
Sun, 16 Apr 2023 02:36:12 +0000 (04:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Apr 2023 17:28:21 +0000 (19:28 +0200)
commit8e00f6e5e504c8076d4e2d1fdf011772bfc3b6b1
tree63faff997462950a74914395c51d36fc8748db7d
parent25a10f502ee7b2d5eaf0326a59aba7738a75699c
wayland: Don't insta-crash when a surface gets disposed

We want to remove the event queue from the list of event queues, not the
surface.
Otherwise the freed queue stays in the list and the next time an event
comes in, we access invalid memory.

Fixes thinko introduced in commit 7fafa5133b5.

Luckily, we leak all surfaces, so this problem never occured.
gdk/wayland/gdksurface-wayland.c