hfp_hf_bluez5: Remove Card when modem is disabled

This commit is contained in:
Claudio Takahasi 2013-02-28 13:01:09 -03:00 committed by Denis Kenzior
parent 134b237344
commit bff9432007
1 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,9 @@ static int hfp_disable(struct ofono_modem *modem)
fd = g_io_channel_unix_get_fd(channel);
shutdown(fd, SHUT_RDWR);
ofono_handsfree_card_remove(hfp->card);
hfp->card = NULL;
g_at_chat_unref(info->chat);
info->chat = NULL;