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

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