mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-27 21:54:16 +00:00
fix small problem in speech stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5707 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b961cb2c16
commit
5e0c3ee5b7
3 files changed
+14
-7
No files matched your search
@@ -122,5 +122,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_speech_read_tts(switch_speech_handle
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_speech_close(switch_speech_handle_t *sh, switch_speech_flag_t *flags)
|
||||
{
|
||||
return sh->speech_interface->speech_close(sh, flags);
|
||||
switch_status_t status = sh->speech_interface->speech_close(sh, flags);
|
||||
|
||||
if (switch_test_flag(sh, SWITCH_SPEECH_FLAG_FREE_POOL)) {
|
||||
switch_core_destroy_memory_pool(&sh->memory_pool);
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
Reference in new issue
Block a user