aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-11 20:24:14 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-08-11 20:24:14 +0000
commit564107c6c9e4c6a6f3c56d0458f48da3723b7acb (patch)
treee45b700e81914690421fadea2aeebea9cfdf4f95 /file.c
parent2e8b1fc05240b056f4c2928fb19b2a1e981e0d2b (diff)
Free the translators on the ast_closestream
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1290 f38db490-d61c-443f-a65b-d21fe96a405b
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;