[gnome-bluetooth/wip/hadess/btd-restart-fixes: 2/10] lib: Fix refcounting of BluetoothDevice::proxy




commit bd51934775945c19cf62ff1f80d87d22139e2aea
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 8 16:59:20 2021 +0100

    lib: Fix refcounting of BluetoothDevice::proxy

 lib/bluetooth-device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/bluetooth-device.c b/lib/bluetooth-device.c
index 570dfcc6..a49d8a83 100644
--- a/lib/bluetooth-device.c
+++ b/lib/bluetooth-device.c
@@ -103,7 +103,7 @@ bluetooth_device_set_property (GObject        *object,
        switch (property_id) {
        case PROP_PROXY:
                g_clear_object (&device->proxy);
-               device->proxy = g_value_get_object (value);
+               device->proxy = g_value_dup_object (value);
                break;
        case PROP_ADDRESS:
                g_clear_pointer (&device->address, g_free);


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