From 1778578b1e0d4c64c353c47ea87321af1ab5c6b8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 18 Jun 2009 23:03:54 +0000 Subject: [PATCH] del buffer git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13853 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/formats/mod_shell_stream/mod_shell_stream.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/formats/mod_shell_stream/mod_shell_stream.c b/src/mod/formats/mod_shell_stream/mod_shell_stream.c index d4ab1055c5..a7a762bcec 100644 --- a/src/mod/formats/mod_shell_stream/mod_shell_stream.c +++ b/src/mod/formats/mod_shell_stream/mod_shell_stream.c @@ -168,6 +168,10 @@ static switch_status_t shell_stream_file_close(switch_file_handle_t *handle) close(context->fds[0]); } + if (context->audio_buffer) { + switch_buffer_destroy(&context->audio_buffer); + } + switch_thread_rwlock_wrlock(context->rwlock); switch_thread_rwlock_unlock(context->rwlock);