mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
fix placement of f->fmt->close
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
file.c
4
file.c
@@ -683,7 +683,7 @@ int ast_closestream(struct ast_filestream *f)
|
||||
snprintf(cmd,size,"/bin/mv -f %s %s",f->filename,f->realfilename);
|
||||
ast_safe_system(cmd);
|
||||
}
|
||||
f->fmt->close(f);
|
||||
|
||||
if (f->filename) {
|
||||
free(f->filename);
|
||||
f->filename = NULL;
|
||||
@@ -692,7 +692,7 @@ int ast_closestream(struct ast_filestream *f)
|
||||
free(f->realfilename);
|
||||
f->realfilename = NULL;
|
||||
}
|
||||
|
||||
f->fmt->close(f);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user