Skip to content
Snippets Groups Projects
Commit 42806dc1 authored by Anthony Minessale II's avatar Anthony Minessale II
Browse files

fix placement of f->fmt->close

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 45a157ec
Branches
Tags
No related merge requests found
...@@ -683,7 +683,7 @@ int ast_closestream(struct ast_filestream *f) ...@@ -683,7 +683,7 @@ int ast_closestream(struct ast_filestream *f)
snprintf(cmd,size,"/bin/mv -f %s %s",f->filename,f->realfilename); snprintf(cmd,size,"/bin/mv -f %s %s",f->filename,f->realfilename);
ast_safe_system(cmd); ast_safe_system(cmd);
} }
f->fmt->close(f);
if (f->filename) { if (f->filename) {
free(f->filename); free(f->filename);
f->filename = NULL; f->filename = NULL;
...@@ -692,7 +692,7 @@ int ast_closestream(struct ast_filestream *f) ...@@ -692,7 +692,7 @@ int ast_closestream(struct ast_filestream *f)
free(f->realfilename); free(f->realfilename);
f->realfilename = NULL; f->realfilename = NULL;
} }
f->fmt->close(f);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment