aboutsummaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>2010-11-10 10:47:41 +0100
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-11 11:27:33 +0200
commit9079c27239c6f69da83292af29ff594e9e887069 (patch)
treedd371f7520db7aabec15654d5eb96e1a53ad824b /health
parent917449e1cdfc00d917cdd3d924d8fb845774914a (diff)
downloadbluez-9079c27239c6f69da83292af29ff594e9e887069.tar.gz
Fix segfault in HDP during device re-creation
Diffstat (limited to 'health')
-rw-r--r--health/hdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/health/hdp.c b/health/hdp.c
index b141fe7f..e4e3cdef 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -259,6 +259,7 @@ static void device_unref_mcl(struct hdp_device *hdp_device)
if (!hdp_device->mcl)
return;
+ mcap_close_mcl(hdp_device->mcl, FALSE);
mcap_mcl_unref(hdp_device->mcl);
hdp_device->mcl = NULL;
hdp_device->mcl_conn = FALSE;