[mod_tts_commandline, mod_sndfile] fix crash on file not found

This commit is contained in:
Dragos Oancea authored and Andrey Volk committed 2019-11-11 23:02:21 +04:00
1 parent 7f63483138
commit 60746cc07c
2 files changed
+10 -4

No files matched your search

+3 -1
View File
@@ -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;
}