From abf2f17387de81d3927ff5a9351d1926a66e7690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 10 Apr 2021 00:50:30 +0200 Subject: [PATCH] renderer: Cleanup views in dispose The views needs to be cleaned up before things cleaned up on finalize that they depend on existing, so do so in dispose(). Part-of: --- src/backends/meta-renderer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/meta-renderer.c b/src/backends/meta-renderer.c index 2740795cb..8808a52ef 100644 --- a/src/backends/meta-renderer.c +++ b/src/backends/meta-renderer.c @@ -366,14 +366,14 @@ meta_renderer_set_property (GObject *object, } static void -meta_renderer_finalize (GObject *object) +meta_renderer_dispose (GObject *object) { MetaRenderer *renderer = META_RENDERER (object); MetaRendererPrivate *priv = meta_renderer_get_instance_private (renderer); g_clear_list (&priv->views, g_object_unref); - G_OBJECT_CLASS (meta_renderer_parent_class)->finalize (object); + G_OBJECT_CLASS (meta_renderer_parent_class)->dispose (object); } static void @@ -388,7 +388,7 @@ meta_renderer_class_init (MetaRendererClass *klass) object_class->get_property = meta_renderer_get_property; object_class->set_property = meta_renderer_set_property; - object_class->finalize = meta_renderer_finalize; + object_class->dispose = meta_renderer_dispose; klass->rebuild_views = meta_renderer_real_rebuild_views; klass->get_views_for_monitor = meta_renderer_real_get_views_for_monitor;