From: Zhenhua Zhang Date: Fri, 4 Dec 2009 03:22:15 +0000 (+0800) Subject: Fix release clcc_source when voicecall is removed X-Git-Tag: 0.13~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62df556f289bd250ebf648045ce8dfe17f4aa83b;p=platform%2Fupstream%2Fofono.git Fix release clcc_source when voicecall is removed Release the timer to avoid invoking the callback function after voicecall driver is removed. --- diff --git a/drivers/atmodem/voicecall.c b/drivers/atmodem/voicecall.c index 3d8fb59..885cbfa 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);