From bd4e4d5971cd4beeadb1abfc4503f137dbf76e17 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 24 Oct 2008 15:09:50 +0300 Subject: No need to remove the ring timer twice in the terminate call case --- audio/headset.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/audio/headset.c b/audio/headset.c index 8545ae22..f5cb986d 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -777,16 +777,6 @@ int telephony_terminate_call_rsp(void *telephony_device, AUDIO_HEADSET_INTERFACE, "CallTerminated", DBUS_TYPE_INVALID); - if (ag.number) { - g_free(ag.number); - ag.number = NULL; - } - - if (ag.ring_timer) { - g_source_remove(ag.ring_timer); - ag.ring_timer = 0; - } - return headset_send(hs, "\r\nOK\r\n"); } -- cgit