1
0
Fork 0

wayland/color-management: Fix SIGSEGV on dispose

meta_wayland_color_management_dispose func is only called when the compositor
is shutting down, in that case the wl_globals are already automatically removed.

meta_wayland_color_management_dispose calls wl_global_remove again,
this makes a SIGSEGV when color_management is enabled and mutter is being
shut down.

Stop calling wl_global_remove to fix it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4032>
This commit is contained in:
Joan Torres 2024-09-17 11:29:01 +02:00 committed by Marge Bot
parent 971bf15f26
commit e8a9d3a68e

View file

@ -1388,8 +1388,6 @@ meta_wayland_color_manager_dispose (GObject *object)
g_clear_pointer (&color_manager->outputs, g_hash_table_destroy);
g_clear_pointer (&color_manager->surfaces, g_hash_table_destroy);
g_clear_pointer (&color_manager->global, wl_global_remove);
}
static void