mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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
This commit is contained in:
@ -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 =
|
||||
|
Reference in New Issue
Block a user