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