diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-01-14 17:39:31 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-01-14 17:39:31 +0000 |
commit | 673d610b53d8dff550eee3a5bcf72ea1f3fccf59 (patch) | |
tree | 9dcf061ffb192874c996a0b2299b751129c293fb | |
parent | d3573783974dff414694d27e5f853414f92983d8 (diff) |
Merged revisions 98774 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r98774 | russell | 2008-01-14 11:38:38 -0600 (Mon, 14 Jan 2008) | 3 lines
Revert a change that introduces an unacceptable performance hit and is causing
memory leaks ... (from rev 97973)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/translate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/translate.c b/main/translate.c index 6c27e4e24..2e98df92b 100644 --- a/main/translate.c +++ b/main/translate.c @@ -225,10 +225,8 @@ struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt, f->offset = AST_FRIENDLY_OFFSET; f->src = pvt->t->name; f->data = pvt->outbuf; - /* We must clone the frame, because the pvt could disappear - * the moment after we return (and unlock the source channel). - */ - return ast_frisolate(f); + + return f; } static struct ast_frame *default_frameout(struct ast_trans_pvt *pvt) |