Commit f4d71e0d authored by Max A. Dednev's avatar Max A. Dednev Committed by Colin Walters

authority: Fix memory leak in EnumerateActions call results handler

Policykit-1 doesn't release reference counters of GVariant data for
org.freedesktop.PolicyKit1.Authority.EnumerateActions dbus call.  This
patch fixed reference counting and following memory leak.
parent 6c992bc8
......@@ -715,7 +715,6 @@ polkit_authority_enumerate_actions_finish (PolkitAuthority *authority,
while ((child = g_variant_iter_next_value (&iter)) != NULL)
ret = g_list_prepend (ret, polkit_action_description_new_for_gvariant (child));
g_variant_ref_sink (child);
g_variant_unref (child);
ret = g_list_reverse (ret);
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