eis: Tear down in dispose

This means clients can disconnect signals without warnings being logged.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3228>
This commit is contained in:
Jonas Ådahl 2023-08-29 20:28:24 +02:00 committed by Marge Bot
parent 27b790d8c1
commit b3ba8aedcb

View File

@ -270,7 +270,7 @@ meta_eis_init (MetaEis *eis)
} }
static void static void
meta_eis_finalize (GObject *object) meta_eis_dispose (GObject *object)
{ {
MetaEis *eis = META_EIS (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, eis_unref);
g_clear_pointer (&eis->eis_clients, g_hash_table_destroy); 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 static void
@ -286,7 +286,7 @@ meta_eis_class_init (MetaEisClass *klass)
{ {
GObjectClass *object_class = G_OBJECT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = meta_eis_finalize; object_class->dispose = meta_eis_dispose;
} }
MetaEisDeviceTypes MetaEisDeviceTypes