fs_encode: check for file.file_interface before closing
This commit is contained in:
parent
19e86f7c24
commit
c25476b568
|
@ -195,8 +195,14 @@ int main(int argc, char *argv[])
|
|||
r = 0;
|
||||
|
||||
end:
|
||||
switch_core_file_close(&fh_input);
|
||||
switch_core_file_close(&fh_output);
|
||||
|
||||
if (fh_input.file_interface) {
|
||||
switch_core_file_close(&fh_input);
|
||||
}
|
||||
|
||||
if (fh_output.file_interface) {
|
||||
switch_core_file_close(&fh_output);
|
||||
}
|
||||
|
||||
if (pool) {
|
||||
switch_core_destroy_memory_pool(&pool);
|
||||
|
|
Loading…
Reference in New Issue