Freetdm:fix for ftdm_channel_close not always passed double-pointer

This commit is contained in:
David Yat Sin committed 2010-12-15 12:56:49 -05:00
1 parent 102640ad7b
commit ea2b477444
5 files changed
+13 -17

No files matched your search

@@ -280,12 +280,12 @@ static __inline__ void state_advance(ftdm_channel_t *ftdmchan)
switch (ftdmchan->state) {
case FTDM_CHANNEL_STATE_DOWN:
{
ftdm_channel_close(ftdmchan);
{
ftdmchan->call_data = NULL;
ftdm_channel_close(&ftdmchan);
ftdm_channel_close(peerchan);
peerchan->call_data = NULL;
ftdm_channel_close(&peerchan);
}
break;