summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 14:59:32 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 14:59:32 +0300
commit32a2ee1adb42efe2cef027643fb5b0355929f597 (patch)
tree6cea43b9f41a402cd058c11dc8303590c547c2a6 /audio
parent7ce5ece4277611374b57e63fb3168e1bb04a22c7 (diff)
Also remove ring timer if the HF rejects the call
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 7d5fb935..8545ae22 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -792,6 +792,16 @@ int telephony_terminate_call_rsp(void *telephony_device,
static int terminate_call(struct audio_device *device, const char *buf)
{
+ if (ag.number) {
+ g_free(ag.number);
+ ag.number = NULL;
+ }
+
+ if (ag.ring_timer) {
+ g_source_remove(ag.ring_timer);
+ ag.ring_timer = 0;
+ }
+
telephony_terminate_call_req(device);
return 0;