FS-8811 #comment please test

This commit is contained in:
Anthony Minessale committed 2016-03-03 18:37:42 -06:00
1 parent c366e3615f
commit 66fe6e5a46
3 files changed
+213 -89

No files matched your search

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