mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
Fix an assertion when activating apps a second time
This was causing the following critical when running bloatpad twice: GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed
This commit is contained in:
parent
f40de4b152
commit
840482658a
@ -494,6 +494,9 @@ g_dbus_action_group_sync (GDBusActionGroup *group,
|
||||
GVariantIter *iter;
|
||||
ActionInfo *action;
|
||||
|
||||
g_assert (group->actions == NULL);
|
||||
group->actions = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, action_info_free);
|
||||
|
||||
g_variant_get (reply, "(a{s(bgav)})", &iter);
|
||||
while ((action = action_info_new_from_iter (iter)))
|
||||
g_hash_table_insert (group->actions, action->name, action);
|
||||
|
Loading…
x
Reference in New Issue
Block a user