mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 08:49:01 +00:00
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;
|
r = 0;
|
||||||
|
|
||||||
end:
|
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) {
|
if (pool) {
|
||||||
switch_core_destroy_memory_pool(&pool);
|
switch_core_destroy_memory_pool(&pool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user