hfp_hf_bluez5: Remove Card on RequestDisconnection

For local initiated disconnection the GAtChat disconnect callback is not
called. For this case, Audio Card remove function needs to be called.
This commit is contained in:
Claudio Takahasi 2013-02-28 13:01:10 -03:00 committed by Denis Kenzior
parent bff9432007
commit cf6137c187
1 changed files with 3 additions and 0 deletions

View File

@ -454,6 +454,9 @@ static DBusMessage *profile_disconnection(DBusConnection *conn,
hfp = ofono_modem_get_data(modem);
info = &hfp->info;
ofono_handsfree_card_remove(hfp->card);
hfp->card = NULL;
g_at_chat_unref(info->chat);
info->chat = NULL;