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




commit 3a88e6ebc1e974a16c6b926182c28558913c3f49
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]