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




commit 621ebf7e6a6954c3dc9899fd2706c4c08c2b3738
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]