[gnome-bluetooth/wip/hadess/services-removal-fix: 2/2] lib: Fix refcounting assertion




commit 156ee60627856f5536dce956b006179c05ae1456
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Nov 30 11:01:18 2021 +0100

    lib: Fix refcounting assertion
    
    bf5ce87a0e91ad3d4a41c11ab92909c07d4f6ca8 removed the SERVICES column
    enum member, but kept a column for it in the internal tree store.
    Hilarity ensued when the arrays of strings in the UUIDs column were
    stashed where a hashtable should have been.
    
    Fixes: bf5ce87a0e91ad3d4a41c11ab92909c07d4f6ca8

 lib/bluetooth-client.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 398ec16c..d4883cea 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -904,7 +904,6 @@ static void bluetooth_client_init(BluetoothClient *client)
                                         G_TYPE_BOOLEAN,    /* BLUETOOTH_COLUMN_DISCOVERING */
                                         G_TYPE_INT,        /* BLUETOOTH_COLUMN_LEGACYPAIRING */
                                         G_TYPE_BOOLEAN,    /* BLUETOOTH_COLUMN_POWERED */
-                                        G_TYPE_HASH_TABLE, /* BLUETOOTH_COLUMN_SERVICES */
                                         G_TYPE_STRV);      /* BLUETOOTH_COLUMN_UUIDS */
 
        g_dbus_object_manager_client_new_for_bus (G_BUS_TYPE_SYSTEM,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]