mirror of git://git.sysmocom.de/ofono
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:
parent
d90c657bd4
commit
62df556f28
|
@ -872,6 +872,9 @@ static void at_voicecall_remove(struct ofono_voicecall *vc)
|
||||||
{
|
{
|
||||||
struct voicecall_data *vd = ofono_voicecall_get_data(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_foreach(vd->calls, (GFunc) g_free, NULL);
|
||||||
g_slist_free(vd->calls);
|
g_slist_free(vd->calls);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue