backend: Destroy clutter backend explicitly

Instead of relying on reference counting, destroy it with a destroy
function that calls run_dispose() on before removing a reference.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1775>
This commit is contained in:
Jonas Ådahl
2021-03-12 08:38:46 +01:00
committed by Marge Bot
parent ab600cafd2
commit c1810d6947
3 changed files with 14 additions and 14 deletions

View File

@@ -247,7 +247,7 @@ meta_backend_dispose (GObject *object)
#endif
g_clear_pointer (&priv->default_seat, clutter_seat_destroy);
g_clear_object (&priv->clutter_backend);
g_clear_pointer (&priv->clutter_backend, clutter_backend_destroy);
G_OBJECT_CLASS (meta_backend_parent_class)->dispose (object);
}