Commit 151b198b authored by Pavel Vasin's avatar Pavel Vasin Committed by Matthias Clasen

GDBusActionGroup: hold ref until async init done

to avoid use-after-free if GDBusActionGroup was finalized
parent b2d848e3
......@@ -268,6 +268,8 @@ g_dbus_action_group_describe_all_done (GObject *source,
g_variant_iter_free (iter);
g_variant_unref (reply);
g_object_unref (group);
......@@ -283,7 +285,7 @@ g_dbus_action_group_async_init (GDBusActionGroup *group)
g_dbus_connection_call (group->connection, group->bus_name, group->object_path, "org.gtk.Actions", "DescribeAll", NULL,
g_dbus_action_group_describe_all_done, group);
g_dbus_action_group_describe_all_done, g_object_ref (group));
static gchar **
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment