mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
backends/native: Destruct udev after kms
MetaKms is a user of MetaUdev, so destroy MetaUdev later than MetaKms, to avoid use-after-free. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1640>
This commit is contained in:
parent
431bde921c
commit
d5cbbb2733
@ -96,8 +96,8 @@ meta_backend_native_finalize (GObject *object)
|
||||
if (native->udev_device_added_handler_id)
|
||||
disconnect_udev_device_added_handler (native);
|
||||
|
||||
g_clear_object (&native->udev);
|
||||
g_clear_object (&native->kms);
|
||||
g_clear_object (&native->udev);
|
||||
meta_launcher_free (native->launcher);
|
||||
|
||||
G_OBJECT_CLASS (meta_backend_native_parent_class)->finalize (object);
|
||||
|
Loading…
Reference in New Issue
Block a user