[gnome-bluetooth/wip/hadess/default-adapter-work: 4/6] 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: 4/6] lib: Fix memory leak on coldplug
- Date: Wed, 15 Dec 2021 10:22:42 +0000 (UTC)
commit 9216315837f99cdc8abd6c8813bcb016a813d98e
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 d73eb4bc..2c42516a 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -687,7 +687,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]