Blame SOURCES/Fix-invalid-unrefs-on-realm_invocation_get_cancellab.patch

8e731f
From 8b8b7bf8eb651c56d6e85101d9ff277155981cb3 Mon Sep 17 00:00:00 2001
8e731f
From: Sumit Bose <sbose@redhat.com>
8e731f
Date: Wed, 18 May 2016 14:42:46 +0200
8e731f
Subject: [PATCH] Fix invalid unrefs on realm_invocation_get_cancellable()
8e731f
 retval
8e731f
8e731f
https://bugzilla.redhat.com/show_bug.cgi?id=1330766
8e731f
8e731f
Signed-off-by: Stef Walter <stefw@redhat.com>
8e731f
---
8e731f
 service/realm-packages.c | 3 ---
8e731f
 1 file changed, 3 deletions(-)
8e731f
8e731f
diff --git a/service/realm-packages.c b/service/realm-packages.c
8e731f
index 321921a..9a6984c 100644
8e731f
--- a/service/realm-packages.c
8e731f
+++ b/service/realm-packages.c
8e731f
@@ -479,8 +479,6 @@ on_install_resolved (GObject *source,
8e731f
 			packages_install_async (install->connection,
8e731f
 			                        (const gchar **)package_ids, cancellable,
8e731f
 			                        on_install_installed, g_object_ref (task));
8e731f
-			if (cancellable)
8e731f
-				g_object_unref (cancellable);
8e731f
 		}
8e731f
 
8e731f
 		g_free (missing);
8e731f
@@ -649,7 +647,6 @@ realm_packages_install_async (const gchar **package_sets,
8e731f
 		cancellable = realm_invocation_get_cancellable (install->invocation);
8e731f
 		packages_resolve_async (connection, (const gchar **)install->packages, cancellable,
8e731f
 		                        on_install_resolved, g_object_ref (task));
8e731f
-		g_object_unref (cancellable);
8e731f
 	}
8e731f
 
8e731f
 	g_object_unref (task);
8e731f
-- 
8e731f
2.7.4
8e731f