1
0
Fork 0

backends/native/thread: Unref the callback sources hashtable on finalize

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3788>
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-29 20:42:05 +02:00 committed by Marge Bot
parent f74a46d98d
commit ce1dd40f7b

View file

@ -692,6 +692,7 @@ meta_thread_finalize (GObject *object)
g_clear_pointer (&priv->name, g_free);
g_warn_if_fail (g_hash_table_size (priv->callback_sources) == 0);
g_clear_pointer (&priv->callback_sources, g_hash_table_unref);
g_mutex_clear (&priv->callbacks_mutex);
G_OBJECT_CLASS (meta_thread_parent_class)->finalize (object);