mirror of git://git.sysmocom.de/ofono
Fix: Set data to NULL in hfpmodem drivers
This commit is contained in:
parent
7600c4b3ac
commit
3003ebd066
|
@ -333,6 +333,8 @@ static void hfp_netreg_remove(struct ofono_netreg *netreg)
|
|||
{
|
||||
struct netreg_data *nd = ofono_netreg_get_data(netreg);
|
||||
|
||||
ofono_netreg_set_data(netreg, NULL);
|
||||
|
||||
g_free(nd);
|
||||
}
|
||||
|
||||
|
|
|
@ -514,6 +514,9 @@ static void hfp_voicecall_remove(struct ofono_voicecall *vc)
|
|||
|
||||
g_slist_foreach(vd->calls, (GFunc) g_free, NULL);
|
||||
g_slist_free(vd->calls);
|
||||
|
||||
ofono_voicecall_set_data(vc, NULL);
|
||||
|
||||
g_free(vd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue