summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2013-02-28 13:01:09 -0300
committerDenis Kenzior <denkenz@gmail.com>2013-02-28 10:10:54 -0600
commitbff94320072b2a96078444062873aea94e1f4974 (patch)
tree024a3f21f8a6b91a64b53a0436546033076fb965 /plugins
parent134b237344818392df96192d9dbd1fde9a8f4858 (diff)
downloadofono-bff94320072b2a96078444062873aea94e1f4974.tar.bz2
hfp_hf_bluez5: Remove Card when modem is disabled
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp_hf_bluez5.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index 5db7bb89..d35a20fa 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -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;