diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2020-08-12 15:28:34 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2020-08-13 06:34:04 +0000 |
commit | fb0f03640a4fdc8bedaf6f64fd1781207b9d975c (patch) | |
tree | 7c40fab2a8f25d145e238cf81c6622c93acb6cbb /src/backends/meta-renderer.c | |
parent | a13c307fa4a6f38d14bc1e30be818a4d4267ae01 (diff) | |
download | mutter-fb0f03640a4fdc8bedaf6f64fd1781207b9d975c.tar.gz |
stage-view: Add clutter_stage_view_destroy()
This aims to make sure a view and its resources are destroyed when it
should. Using references might keep certain components (e.g frame clock)
alive for too long.
We currently don't take any long lived references to the stage view
anywhere, so this doesn't matter in practice, but this may change, and
will be used by a to be added test case.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1404
Diffstat (limited to 'src/backends/meta-renderer.c')
-rw-r--r-- | src/backends/meta-renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/meta-renderer.c b/src/backends/meta-renderer.c index c0bbb6133..27ea7c38a 100644 --- a/src/backends/meta-renderer.c +++ b/src/backends/meta-renderer.c @@ -143,7 +143,7 @@ meta_renderer_real_rebuild_views (MetaRenderer *renderer) meta_backend_get_monitor_manager (backend); GList *logical_monitors, *l; - g_list_free_full (priv->views, g_object_unref); + g_list_free_full (priv->views, (GDestroyNotify) clutter_stage_view_destroy); priv->views = NULL; logical_monitors = |