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)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:23:26 +0000 (09:23 +0200)
commit79d8220908c209a4268f29883db121c949b75b1a
tree3465cc06230de3357683f68989fc14c5a15591ae
parent7417d30a1fb6f737834a0d0accbbec95e32dbc03
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