aboutsummaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorSantiago Carot-Nemesio <sancane@gmail.com>2010-11-12 09:33:27 +0100
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-18 16:56:26 +0200
commitb3a66533673be9c6ce2d17c7da07858793ce95e8 (patch)
tree5186be9d0ab28d151c2caf55b8b122f4dfef33ff /health
parentf472779b770f9d3d738d7dae10c5d1050f48e8f3 (diff)
downloadbluez-b3a66533673be9c6ce2d17c7da07858793ce95e8.tar.gz
Remove MCL's before removing the application
If you do in the other way you will find freed memory while removing the mcl.
Diffstat (limited to 'health')
-rw-r--r--health/hdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/health/hdp.c b/health/hdp.c
index b02d7086..62094e3d 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -1290,9 +1290,9 @@ static void release_adapter_instance(struct hdp_adapter *hdp_adapter)
{
if (!hdp_adapter->mi)
return;
+ check_devices_mcl();
mcap_release_instance(hdp_adapter->mi);
hdp_adapter->mi = NULL;
- check_devices_mcl();
}
static gboolean update_adapter(struct hdp_adapter *hdp_adapter)