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




commit d5e6cf050c39f45c6bafa7466f89b530f638211d
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]