提交 c25476b5 authored 作者: Mathieu Rene's avatar Mathieu Rene

fs_encode: check for file.file_interface before closing

上级 19e86f7c
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论