Add check for error path

This commit is contained in:
Denis Kenzior 2009-06-02 14:38:42 -05:00
parent 7470393da7
commit 44bed555a5
1 changed files with 3 additions and 0 deletions

View File

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