a11y: Add missing value free function

We allocate the reference counter, so we need to free it.
This commit is contained in:
Emmanuele Bassi 2024-08-31 22:40:16 +01:00
parent 5faa1c3d6e
commit ae13a82a9a

View File

@ -649,7 +649,7 @@ on_registered_events_reply (GObject *gobject,
const char *sender, *event_name;
if (self->event_listeners == NULL)
self->event_listeners = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
self->event_listeners = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
g_variant_get (listeners, "a(ss)", &iter);
while (g_variant_iter_loop (iter, "(&s&s)", &sender, &event_name))