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

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