hfpmodem: Fix g_at_chat leak

This commit is contained in:
Frédéric Dalleau 2011-08-04 14:48:02 +02:00 committed by Denis Kenzior
parent 7e852420e8
commit f13b3d3a6b
3 changed files with 3 additions and 0 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}