mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
Free the translators on the ast_closestream
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
file.c
5
file.c
@@ -627,6 +627,11 @@ int ast_closestream(struct ast_filestream *f)
|
|||||||
f->owner->vstreamid = -1;
|
f->owner->vstreamid = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* destroy the translator on exit */
|
||||||
|
if (f->trans) {
|
||||||
|
ast_translator_free_path(f->trans);
|
||||||
|
f->trans = NULL;
|
||||||
|
}
|
||||||
if (f->filename)
|
if (f->filename)
|
||||||
free(f->filename);
|
free(f->filename);
|
||||||
f->filename = NULL;
|
f->filename = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user