Commit: f194be5c746d1ad6f093d1b175b7b0e1ccafad58
Parent: 7bb63a5bb82bafbd187358d7f33b1122ae8be7cd
Author: Bruna Moreira <bruna.moreira@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@nokia.com>
Date: 2011-04-26 22:59:59
Tree: 46f3271841b15d2feec36baa3464d8fb634901cb

Fix segfault when removing device The device_register_services() function uses g_slist_concat(), therefore the passed list should not be freed. The primary_cb() function from GATT library was freeing the services list using discover_primary_free(). To fix this, the device_register_services() function receives a copy of services list if called from inside a gatt_discover_primary() callback.

Diffstat

M src/device.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

View Full Diff | Patch