onscreen/native: Detach onscreens when disposing

On exit, explicitly detach the onscreens during disposal. This means no
functional changes, but allows for doing more cleanup on detach that
doesn't need to be repeated on disposal.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2885>
This commit is contained in:
Jonas Ådahl 2023-03-03 14:58:08 +01:00 committed by Marge Bot
parent ed12df1099
commit d1785a3917

View File

@ -2293,7 +2293,7 @@ meta_onscreen_native_dispose (GObject *object)
MetaRendererNative *renderer_native = onscreen_native->renderer_native;
MetaRendererNativeGpuData *renderer_gpu_data;
clear_invalidation_handlers (onscreen_native);
meta_onscreen_native_detach (onscreen_native);
renderer_gpu_data =
meta_renderer_native_get_gpu_data (renderer_native,