Blame SOURCES/0001-lib-Fix-a-few-memory-leaks.patch
|
|
04bdd5 |
From 91ac544495d874159893eefff1f68332c4780001 Mon Sep 17 00:00:00 2001
|
|
|
04bdd5 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
04bdd5 |
Date: Wed, 20 Nov 2013 17:10:07 +0100
|
|
|
04bdd5 |
Subject: [PATCH 1/3] lib: Fix a few memory leaks
|
|
|
04bdd5 |
|
|
|
04bdd5 |
---
|
|
|
04bdd5 |
lib/bluetooth-client.c | 3 +++
|
|
|
04bdd5 |
1 file changed, 3 insertions(+)
|
|
|
04bdd5 |
|
|
|
04bdd5 |
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
|
|
|
04bdd5 |
index 8bddb58..1fe7e6d 100644
|
|
|
04bdd5 |
--- a/lib/bluetooth-client.c
|
|
|
04bdd5 |
+++ b/lib/bluetooth-client.c
|
|
|
04bdd5 |
@@ -1878,8 +1878,10 @@ bluetooth_client_connect_service (BluetoothClient *client,
|
|
|
04bdd5 |
g_object_unref (proxy);
|
|
|
04bdd5 |
goto bail;
|
|
|
04bdd5 |
}
|
|
|
04bdd5 |
+ g_hash_table_unref (table);
|
|
|
04bdd5 |
|
|
|
04bdd5 |
service = get_proxy_for_iface (DEVICE (proxy), iface_name, client);
|
|
|
04bdd5 |
+ g_object_unref (proxy);
|
|
|
04bdd5 |
|
|
|
04bdd5 |
g_debug ("Calling 'Connect' on interface %s for %s",
|
|
|
04bdd5 |
iface_name, g_dbus_proxy_get_object_path (service));
|
|
|
04bdd5 |
@@ -1922,6 +1924,7 @@ bluetooth_client_connect_service (BluetoothClient *client,
|
|
|
04bdd5 |
NULL,
|
|
|
04bdd5 |
(GAsyncReadyCallback) disconnect_callback,
|
|
|
04bdd5 |
conndata);
|
|
|
04bdd5 |
+ g_object_unref (proxy);
|
|
|
04bdd5 |
}
|
|
|
04bdd5 |
|
|
|
04bdd5 |
return;
|
|
|
04bdd5 |
--
|
|
|
04bdd5 |
1.8.4.2
|
|
|
04bdd5 |
|