mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 21:17:06 +00:00
[mod_tts_commandline, mod_sndfile] fix crash on file not found
This commit is contained in:
1 parent
7f63483138
commit
60746cc07c
2 files changed
+10
-4
No files matched your search
@@ -267,7 +267,9 @@ static switch_status_t sndfile_file_close(switch_file_handle_t *handle)
|
||||
{
|
||||
sndfile_context *context = handle->private_info;
|
||||
|
||||
sf_close(context->handle);
|
||||
if (context) {
|
||||
sf_close(context->handle);
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user