[gnome-bluetooth/wip/hadess/default-adapter-work: 7/9] lib: Fix memory leak on coldplug
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/default-adapter-work: 7/9] lib: Fix memory leak on coldplug
- Date: Thu, 16 Dec 2021 15:56:29 +0000 (UTC)
commit 7a4164f700c12a9dcb5eb049e9ca66d01260dd3f
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 14 15:38:51 2021 +0100
lib: Fix memory leak on coldplug
lib/bluetooth-client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index a47799f7..ab636ad7 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -770,7 +770,8 @@ object_manager_new_callback(GObject *source_object,
{
BluetoothClient *client;
GDBusObjectManager *manager;
- GList *object_list, *l;
+ g_autolist(GDBusObject) object_list = NULL;
+ GList *l;
GError *error = NULL;
manager = g_dbus_object_manager_client_new_for_bus_finish (res, &error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]