Blame SOURCES/0003-lib-Fix-extraneous-reference-that-could-lead-to-cras.patch

c396c5
From fbc1ce2836ccf17368fb6fe2aa0c69396c610aa5 Mon Sep 17 00:00:00 2001
c396c5
From: Bastien Nocera <hadess@hadess.net>
c396c5
Date: Wed, 20 Nov 2013 17:11:32 +0100
c396c5
Subject: [PATCH 3/3] lib: Fix extraneous reference that could lead to crash
c396c5
c396c5
The proxy we got from the tree model was already the extra
c396c5
reference we needed. This makes sure that all additional
c396c5
instances of the device (the ones not in the tree model)
c396c5
are destroyed when cancelling a disconnect call.
c396c5
---
c396c5
 lib/bluetooth-client.c | 2 +-
c396c5
 1 file changed, 1 insertion(+), 1 deletion(-)
c396c5
c396c5
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
c396c5
index e224033..c5e86de 100644
c396c5
--- a/lib/bluetooth-client.c
c396c5
+++ b/lib/bluetooth-client.c
c396c5
@@ -1900,7 +1900,7 @@ bluetooth_client_connect_service (BluetoothClient     *client,
c396c5
 	} else if (table != NULL) {
c396c5
 		GDBusProxy *service;
c396c5
 
c396c5
-		conndata->device = g_object_ref (DEVICE (proxy));
c396c5
+		conndata->device = DEVICE (proxy);
c396c5
 		conndata->services = g_hash_table_get_keys (table);
c396c5
 		g_hash_table_unref (table);
c396c5
 		conndata->services = g_list_sort (conndata->services, (GCompareFunc) rev_sort_services);
c396c5
-- 
c396c5
1.8.4.2
c396c5