mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
FS-8811 #comment please test
This commit is contained in:
1 parent
c366e3615f
commit
66fe6e5a46
3 files changed
+213
-89
No files matched your search
@@ -782,6 +782,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_close(switch_file_handle_t *fh)
|
||||
|
||||
switch_resample_destroy(&fh->resampler);
|
||||
|
||||
if (switch_test_flag(fh, SWITCH_FILE_FLAG_FREE_POOL)) {
|
||||
switch_core_destroy_memory_pool(&fh->memory_pool);
|
||||
}
|
||||
|
||||
fh->memory_pool = NULL;
|
||||
|
||||
switch_safe_free(fh->dbuf);
|
||||
|
||||
if (fh->spool_path) {
|
||||
char *command;
|
||||
@@ -799,16 +806,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_close(switch_file_handle_t *fh)
|
||||
free(command);
|
||||
}
|
||||
|
||||
|
||||
UNPROTECT_INTERFACE(fh->file_interface);
|
||||
|
||||
if (switch_test_flag(fh, SWITCH_FILE_FLAG_FREE_POOL)) {
|
||||
switch_core_destroy_memory_pool(&fh->memory_pool);
|
||||
}
|
||||
|
||||
switch_safe_free(fh->dbuf);
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user