aboutsummaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorSantiago Carot-Nemesio <sancane@gmail.com>2010-11-12 12:19:01 +0100
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-18 16:56:27 +0200
commitf2aa76f9651cd5f82bfef4a4da6a982df88b6cd9 (patch)
tree2121dd24c44bb4737dcdee5270852dede153359f /health
parentb3a66533673be9c6ce2d17c7da07858793ce95e8 (diff)
downloadbluez-f2aa76f9651cd5f82bfef4a4da6a982df88b6cd9.tar.gz
Add missed unrefs for hdp_tmp_dc_data
Diffstat (limited to 'health')
-rw-r--r--health/hdp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/health/hdp.c b/health/hdp.c
index 62094e3d..b88b294c 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -583,12 +583,12 @@ static void device_reconnect_mdl_cb(struct mcap_mdl *mdl, GError *err,
ERROR_INTERFACE ".HealthError",
"Cannot reconnect: %s", gerr->message);
g_dbus_send_message(dc_data->conn, reply);
+ hdp_tmp_dc_data_unref(dc_data);
g_error_free(gerr);
gerr = NULL;
/* Send abort request because remote side is now in PENDING state */
- if (!mcap_mdl_abort(dc_data->hdp_chann->mdl, abort_mdl_cb,
- NULL, NULL, &gerr)) {
+ if (!mcap_mdl_abort(mdl, abort_mdl_cb, NULL, NULL, &gerr)) {
error("%s", gerr->message);
g_error_free(gerr);
}
@@ -1714,8 +1714,7 @@ static void device_create_mdl_cb(struct mcap_mdl *mdl, uint8_t conf,
hdp_tmp_dc_data_unref(hdp_conn);
/* Send abort request because remote side is now in PENDING state */
- if (!mcap_mdl_abort(hdp_chan->mdl, abort_mdl_cb, NULL, NULL,
- &gerr)) {
+ if (!mcap_mdl_abort(mdl, abort_mdl_cb, NULL, NULL, &gerr)) {
error("%s", gerr->message);
g_error_free(gerr);
}