summaryrefslogtreecommitdiff
path: root/src/backends/meta-renderer.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-08-12 15:28:34 +0200
committerJonas Ådahl <jadahl@gmail.com>2020-08-13 06:34:04 +0000
commitfb0f03640a4fdc8bedaf6f64fd1781207b9d975c (patch)
tree7c40fab2a8f25d145e238cf81c6622c93acb6cbb /src/backends/meta-renderer.c
parenta13c307fa4a6f38d14bc1e30be818a4d4267ae01 (diff)
downloadmutter-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.c2
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 =