OSDN Git Service

core: Fix manager_cleanup order
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 14 Nov 2012 08:58:08 +0000 (10:58 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 14 Nov 2012 08:58:08 +0000 (10:58 +0200)
commit2d56d5e87b132b4f7ba33b87cebd1f0065e23325
tree27338dd0dcb2c36bc50c31742ec1e9dca70f813d
parent99cb1dbc8f85ba0b78597e03b655ee6348c624fa
core: Fix manager_cleanup order

This patch fixes the order in which things are cleaned up in
manager_cleanup. The profiles need to be cleaned up first (since they
are higher level constructs than adapters and devices) and we cannot
remove the adapter from the manager list before calling adapter_remove
since functions within adapter_remove may remove service records which
in turn relies on having the adapter present in the manager list.
src/manager.c