compositor: Fix use after free at shutdown

Another case of forgetting to remove a listener from a list when
signal_emit_mutable fires.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
dev
Derek Foreman 2 years ago committed by Marius Vlad
parent 851b16f00c
commit 214d48bbab
  1. 2
      compositor/xwayland.c

@ -234,6 +234,8 @@ wxw_compositor_destroy(struct wl_listener *listener, void *data)
struct wet_xwayland *wxw = struct wet_xwayland *wxw =
wl_container_of(listener, wxw, compositor_destroy_listener); wl_container_of(listener, wxw, compositor_destroy_listener);
wl_list_remove(&wxw->compositor_destroy_listener.link);
/* Don't call xserver_exited because Xwayland's own destroy handler /* Don't call xserver_exited because Xwayland's own destroy handler
* already does this for us ... */ * already does this for us ... */
if (wxw->client) if (wxw->client)

Loading…
Cancel
Save