mirror of git://git.sysmocom.de/ofono
hfpmodem: Fix g_at_chat leak
This commit is contained in:
parent
7e852420e8
commit
f13b3d3a6b
|
@ -206,6 +206,7 @@ static void hfp_call_volume_remove(struct ofono_call_volume *cv)
|
|||
|
||||
ofono_call_volume_set_data(cv, NULL);
|
||||
|
||||
g_at_chat_unref(vd->chat);
|
||||
g_free(vd);
|
||||
}
|
||||
|
||||
|
|
|
@ -331,6 +331,7 @@ static void hfp_netreg_remove(struct ofono_netreg *netreg)
|
|||
|
||||
ofono_netreg_set_data(netreg, NULL);
|
||||
|
||||
g_at_chat_unref(nd->chat);
|
||||
g_free(nd);
|
||||
}
|
||||
|
||||
|
|
|
@ -1166,6 +1166,7 @@ static void hfp_voicecall_remove(struct ofono_voicecall *vc)
|
|||
|
||||
ofono_voicecall_set_data(vc, NULL);
|
||||
|
||||
g_at_chat_unref(vd->chat);
|
||||
g_free(vd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue