Parent: b72673c6084f7c7c32ed0c0ef44696882ee96aa5
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2013-07-10 12:55:14
Tree: 1536df2723fdf44e97eaf623dea7fb48b78a2d1c
core/device: Fix crash while freeing services list btd_service do alter its state on service_remove which can cause plugins to attempt to access services list which may have freed some services already. To fix this the code now updates the list in place so the services are first removed from services list before calling service_remove.
Diffstat
| M | src/device.c | | | 19 | +++++++++++++- - - - - - |
1 files changed, 13 insertions(+), 6 deletions(-)