From 32a2ee1adb42efe2cef027643fb5b0355929f597 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 24 Oct 2008 14:59:32 +0300 Subject: Also remove ring timer if the HF rejects the call --- audio/headset.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- cgit