mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
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:
parent
814a9de9d8
commit
069fe8e915
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user