git-svn-id: http://svn.openzap.org/svn/openzap/trunk@297 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-06-27 14:59:05 +00:00
parent 93a1903a3c
commit fa0e2fa919
1 changed files with 3 additions and 1 deletions

View File

@ -215,7 +215,7 @@ static zap_status_t zap_channel_destroy(zap_channel_t *zchan)
{
if (zap_test_flag(zchan, ZAP_CHANNEL_CONFIGURED)) {
zap_mutex_destroy(&zchan->mutex);
zap_buffer_destroy(&zchan->digit_buffer);
zap_buffer_destroy(&zchan->dtmf_buffer);
zap_buffer_destroy(&zchan->fsk_buffer);
@ -234,6 +234,8 @@ static zap_status_t zap_channel_destroy(zap_channel_t *zchan)
zap_log(ZAP_LOG_ERROR, "Error Closing channel %u:%u fd:%d\n", zchan->span_id, zchan->chan_id, zchan->sockfd);
}
}
zap_mutex_destroy(&zchan->mutex);
}
return ZAP_SUCCESS;