remove -w from makefile and fix all the obvious mistakes it was hiding

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@360 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale
2008-01-08 23:33:07 +00:00
parent f926e83c02
commit 2fddaf7465
3 changed files with 41 additions and 8 deletions

View File

@@ -1135,6 +1135,9 @@ static ZIO_CHANNEL_DESTROY_FUNCTION(pika_channel_destroy)
return ZAP_FAIL;
}
if (!zap_test_flag(chan_data, PK_FLAG_READY)) {
goto end;
}
PKH_RECORD_Stop(chan_data->media_in);
PKH_PLAY_Stop(chan_data->media_out);
@@ -1160,6 +1163,8 @@ static ZIO_CHANNEL_DESTROY_FUNCTION(pika_channel_destroy)
zap_mutex_destroy(&chan_data->digit_mutex);
zap_buffer_destroy(&chan_data->digit_buffer);
end:
zap_safe_free(chan_data);
return ZAP_SUCCESS;