Blame SOURCES/polkit-0.112-EnumerateActions-leak.patch

656e92
commit f4d71e0de885010494b8b0b8d62ca910011d7544
656e92
Author: Max A. Dednev <dednev@rambler.ru>
656e92
Date:   Sun Jan 11 20:00:44 2015 -0500
656e92
656e92
    authority: Fix memory leak in EnumerateActions call results handler
656e92
    
656e92
    Policykit-1 doesn't release reference counters of GVariant data for
656e92
    org.freedesktop.PolicyKit1.Authority.EnumerateActions dbus call.  This
656e92
    patch fixed reference counting and following memory leak.
656e92
    
656e92
    https://bugs.freedesktop.org/show_bug.cgi?id=88288
656e92
656e92
diff --git a/src/polkit/polkitauthority.c b/src/polkit/polkitauthority.c
656e92
index 75619ab..ab6d3cd 100644
656e92
--- a/src/polkit/polkitauthority.c
656e92
+++ b/src/polkit/polkitauthority.c
656e92
@@ -715,7 +715,6 @@ polkit_authority_enumerate_actions_finish (PolkitAuthority *authority,
656e92
   while ((child = g_variant_iter_next_value (&iter)) != NULL)
656e92
     {
656e92
       ret = g_list_prepend (ret, polkit_action_description_new_for_gvariant (child));
656e92
-      g_variant_ref_sink (child);
656e92
       g_variant_unref (child);
656e92
     }
656e92
   ret = g_list_reverse (ret);