diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-11-18 22:57:39 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-11-18 22:57:39 +0200 |
commit | 2d370d5d678973644c2c3c75b22d5f24b7a2c638 (patch) | |
tree | ad8cc3081971843ae06bb8c0aeaa9179f4ded357 /src/device.c | |
parent | 0e9c10ab506becad2ce0e323ff77813ecb8ce5d8 (diff) |
Once a driver has been removed break out and proceed to the next one
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c index 16cf6218..f8014e00 100644 --- a/src/device.c +++ b/src/device.c @@ -765,18 +765,18 @@ void device_remove_drivers(struct btd_device *device, GSList *uuids) driver->remove(device); device->drivers = g_slist_remove(device->drivers, driver_data); - g_free(driver_data); - rec = find_record_in_list(records, *uuid); if (!rec) - continue; + break; delete_record(srcaddr, dstaddr, rec->handle); records = sdp_list_remove(records, rec); sdp_record_free(rec); + + break; } } |