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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3203>
This commit is contained in:
Niels De Graef 2023-08-22 21:57:07 +02:00
parent 814a9de9d8
commit 069fe8e915
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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