From 069fe8e91568be7341854a037d25eb4a2d3c9efb Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Tue, 22 Aug 2023 21:57:07 +0200 Subject: [PATCH] src: Chain up to finalize() We forgot to chain up to the parent class' `finalize()` vfunc in both `MetaEis` and `MetaEisClient`. Plugs 2 (probably tiny) memory leaks. Part-of: --- src/backends/meta-eis-client.c | 2 ++ src/backends/meta-eis.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/backends/meta-eis-client.c b/src/backends/meta-eis-client.c index 3fc8ecb61..359801918 100644 --- a/src/backends/meta-eis-client.c +++ b/src/backends/meta-eis-client.c @@ -740,6 +740,8 @@ meta_eis_client_finalize (GObject *object) on_keymap_changed, meta_eis_client); meta_eis_client_disconnect (meta_eis_client); + + G_OBJECT_CLASS (meta_eis_client_parent_class)->finalize (object); } static void diff --git a/src/backends/meta-eis.c b/src/backends/meta-eis.c index 95eae5e2a..d7b5aae5d 100644 --- a/src/backends/meta-eis.c +++ b/src/backends/meta-eis.c @@ -320,6 +320,8 @@ meta_eis_finalize (GObject *object) g_clear_pointer (&meta_eis->event_source, meta_event_source_free); g_clear_pointer (&meta_eis->eis, eis_unref); g_clear_pointer (&meta_eis->eis_clients, g_hash_table_destroy); + + G_OBJECT_CLASS (meta_eis_parent_class)->finalize (object); } static void