From b3ba8aedcb7a25094bd99a59f17d4fac7bd75b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 29 Aug 2023 20:28:24 +0200 Subject: [PATCH] eis: Tear down in dispose This means clients can disconnect signals without warnings being logged. Part-of: --- src/backends/meta-eis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/meta-eis.c b/src/backends/meta-eis.c index 9086f70b6..ca7f17f2f 100644 --- a/src/backends/meta-eis.c +++ b/src/backends/meta-eis.c @@ -270,7 +270,7 @@ meta_eis_init (MetaEis *eis) } static void -meta_eis_finalize (GObject *object) +meta_eis_dispose (GObject *object) { MetaEis *eis = META_EIS (object); @@ -278,7 +278,7 @@ meta_eis_finalize (GObject *object) g_clear_pointer (&eis->eis, eis_unref); g_clear_pointer (&eis->eis_clients, g_hash_table_destroy); - G_OBJECT_CLASS (meta_eis_parent_class)->finalize (object); + G_OBJECT_CLASS (meta_eis_parent_class)->dispose (object); } static void @@ -286,7 +286,7 @@ meta_eis_class_init (MetaEisClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - object_class->finalize = meta_eis_finalize; + object_class->dispose = meta_eis_dispose; } MetaEisDeviceTypes