summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorMartin Pycko <martinp@digium.com>2003-08-11 20:24:14 +0000
committerMartin Pycko <martinp@digium.com>2003-08-11 20:24:14 +0000
commit5dc7640d746b983e07fe3a314b2208d3806c4c31 (patch)
treee45b700e81914690421fadea2aeebea9cfdf4f95 /file.c
parentd2e85570388caf9d3aaf520cc8a09597658c05d4 (diff)
Free the translators on the ast_closestream
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'file.c')
-rwxr-xr-xfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/file.c b/file.c
index f0d324255..314ad7f75 100755
--- a/file.c
+++ b/file.c
@@ -627,6 +627,11 @@ int ast_closestream(struct ast_filestream *f)
f->owner->vstreamid = -1;
}
}
+ /* destroy the translator on exit */
+ if (f->trans) {
+ ast_translator_free_path(f->trans);
+ f->trans = NULL;
+ }
if (f->filename)
free(f->filename);
f->filename = NULL;