summaryrefslogtreecommitdiffstats
path: root/bluetooth-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'bluetooth-manager.c')
-rw-r--r--bluetooth-manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bluetooth-manager.c b/bluetooth-manager.c
index 525d034..5ce90ce 100644
--- a/bluetooth-manager.c
+++ b/bluetooth-manager.c
@@ -127,6 +127,7 @@ struct btd_device *device_copy(struct btd_device* device)
temp->connected = device->connected;
temp->avconnected = device->avconnected;
temp->hfpconnected = device->hfpconnected;
+ temp->uuids = g_list_copy_deep(device->uuids, g_strdup, NULL);
return temp;
}
@@ -181,6 +182,12 @@ void device_free(struct btd_device* device)
device->transport_state = NULL;
}
+ if (device->uuids) {
+ D_PRINTF("uuids: xxx\n");
+ g_list_free_full(device->uuids, g_free);
+ device->uuids = NULL;
+ }
+
g_free(device);
}
@@ -587,6 +594,7 @@ struct btd_device *device_copy_from_bluez(struct bt_device* device)
temp->trusted = device->trusted;
temp->connected = device->connected;
temp->avconnected = device->avconnected;
+ temp->uuids = g_list_copy_deep(device->uuids, g_strdup, NULL);
return temp;
}