Fix release clcc_source when voicecall is removed

Release the timer to avoid invoking the callback function after
voicecall driver is removed.
This commit is contained in:
Zhenhua Zhang 2009-12-04 11:22:15 +08:00 committed by Denis Kenzior
parent d90c657bd4
commit 62df556f28
1 changed files with 3 additions and 0 deletions

View File

@ -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);