[gnome-bluetooth/wip/hadess/default-adapter-work: 15/17] lib: Fix memory leak on coldplug




commit 7f00b07157e8a6548f01059e0229d65b22a33d9a
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 644e3bb5..4db54116 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -758,7 +758,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]