Free voicecalls when exiting

This commit is contained in:
Denis Kenzior 2009-05-28 20:42:49 -05:00
parent 99456167ab
commit 5bffbb8985
1 changed files with 3 additions and 0 deletions

View File

@ -1113,6 +1113,9 @@ void at_voicecall_exit(struct ofono_modem *modem)
{
struct at_data *at = ofono_modem_userdata(modem);
g_slist_foreach(at->voicecall->calls, (GFunc) g_free, NULL);
g_slist_free(at->voicecall->calls);
g_free(at->voicecall);
at->voicecall = NULL;