diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 14:59:32 +0300 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-24 14:59:32 +0300 | 
| commit | 32a2ee1adb42efe2cef027643fb5b0355929f597 (patch) | |
| tree | 6cea43b9f41a402cd058c11dc8303590c547c2a6 | |
| parent | 7ce5ece4277611374b57e63fb3168e1bb04a22c7 (diff) | |
Also remove ring timer if the HF rejects the call
| -rw-r--r-- | audio/headset.c | 10 | 
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; | 
