backend: Destroy stage when destroying backend

Otherwise we leak it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1775>
This commit is contained in:
Jonas Ådahl 2021-03-12 08:41:02 +01:00 committed by Marge Bot
parent c5f699b8b3
commit c3aa32987a

View File

@ -247,6 +247,7 @@ meta_backend_dispose (GObject *object)
#endif
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_OBJECT_CLASS (meta_backend_parent_class)->dispose (object);