mutter/src
Carlos Garnacho cc874f5d33 x11: Avoid poking MetaCompositor during MetaDisplay destruction
Commit 9c3b130f67 changed slightly destruction order to handle use-after-free
situations, but missed a small new one introduced by the order change: The
MetaX11Display may schedule callbacks through MetaLaters, which depend on the
MetaCompositor, which is now freed before the MetaX11Display.

Since there is no winning move here, make the MetaX11Display aware of this
by avoiding to remove the callback if the MetaCompositor is already gone.
The MetaLaters infrastructure is already fully freed at this point (incl. the
data it contained), so this shouldn't be a leak.

Fixes: 9c3b130f67 ("display: Fix destruction order")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3247>
2023-09-06 09:28:09 +00:00
..
backends cleanup: Replace cairo_matrix_t with graphene_matrix_t 2023-09-05 18:25:49 +00:00
common Update license access method 2023-08-30 08:48:23 +02:00
compositor mtk: Move Rectangle.from_graphene_rect from Meta 2023-08-30 16:46:14 +02:00
core window: Fix portrait orientation check for tiling 2023-09-05 20:13:48 +00:00
frames cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta monitor-manager: Add 'reason' argument to 'power-save-changed' signal 2023-09-02 11:07:38 +00:00
tests renderer/native: Don't queue mode set on hotplug power-save on 2023-09-02 11:07:39 +00:00
wayland wayland: Get device directly from clutter in get_grab_info() for touch case 2023-09-03 09:12:29 +00:00
x11 x11: Avoid poking MetaCompositor during MetaDisplay destruction 2023-09-06 09:28:09 +00:00
meson.build eis: Add "viewport" interface 2023-09-01 10:43:26 +00:00
meta-private-enum-types.c.in build: Add missing include 2022-08-10 20:28:40 +02:00
meta-private-enum-types.h.in cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00