projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
134b237
)
hfp_hf_bluez5: Remove Card when modem is disabled
author
Claudio Takahasi
<claudio.takahasi@openbossa.org>
Thu, 28 Feb 2013 16:01:09 +0000
(13:01 -0300)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 28 Feb 2013 16:10:54 +0000
(10:10 -0600)
plugins/hfp_hf_bluez5.c
patch
|
blob
|
history
diff --git
a/plugins/hfp_hf_bluez5.c
b/plugins/hfp_hf_bluez5.c
index 5db7bb895c18900e80cf005bc603f854689183a6..d35a20fad55b059938dd2c8061a24c88231dc842 100644
(file)
--- 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;