mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
backend: Clean up GPU instances last
Various things, e.g, the renderer, the stage, either directly or indirectly depends on GPU objects being alive during tear-down. Make it so, by moving GPU cleanup after the other cleaning. This will allow tearing down a couple of more objects. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
This commit is contained in:
parent
0a12f1c9c6
commit
f1a120ca36
@ -199,12 +199,6 @@ meta_backend_dispose (GObject *object)
|
||||
MetaBackend *backend = META_BACKEND (object);
|
||||
MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);
|
||||
|
||||
if (priv->gpus)
|
||||
{
|
||||
g_list_free_full (priv->gpus, g_object_unref);
|
||||
priv->gpus = NULL;
|
||||
}
|
||||
|
||||
g_clear_object (&priv->current_device);
|
||||
g_clear_object (&priv->monitor_manager);
|
||||
g_clear_object (&priv->orientation_manager);
|
||||
@ -249,6 +243,7 @@ meta_backend_dispose (GObject *object)
|
||||
g_clear_pointer (&priv->default_seat, clutter_seat_destroy);
|
||||
g_clear_pointer (&priv->stage, clutter_actor_destroy);
|
||||
g_clear_pointer (&priv->clutter_backend, clutter_backend_destroy);
|
||||
g_clear_list (&priv->gpus, g_object_unref);
|
||||
|
||||
G_OBJECT_CLASS (meta_backend_parent_class)->dispose (object);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user