Fix adapter reference counting in gateway_server_remove

gateway_server_remove should unref the adapter, not ref it.
This commit is contained in:
Zhu Yanhai 2010-06-04 16:19:58 +08:00 committed by Johan Hedberg
parent d48df6f540
commit a4cb490fe2

View File

@ -932,7 +932,7 @@ static void gateway_server_remove(struct btd_adapter *adapter)
adp->hfp_hs_server = NULL;
}
audio_adapter_ref(adp);
audio_adapter_unref(adp);
}
static int a2dp_server_probe(struct btd_adapter *adapter)