From 62df556f289bd250ebf648045ce8dfe17f4aa83b Mon Sep 17 00:00:00 2001 From: Zhenhua Zhang Date: Fri, 4 Dec 2009 11:22:15 +0800 Subject: Fix release clcc_source when voicecall is removed Release the timer to avoid invoking the callback function after voicecall driver is removed. --- drivers/atmodem/voicecall.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers') diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c index 3d8fb590..885cbfa3 100644 --- a/drivers/atmodem/voicecall.c +++ b/drivers/atmodem/voicecall.c @@ -872,6 +872,9 @@ static void at_voicecall_remove(struct ofono_voicecall *vc) { struct voicecall_data *vd = ofono_voicecall_get_data(vc); + if (vd->clcc_source) + g_source_remove(vd->clcc_source); + g_slist_foreach(vd->calls, (GFunc) g_free, NULL); g_slist_free(vd->calls); -- cgit v1.2.3