summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-23 16:49:12 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-23 16:49:12 +0000
commitc8ceb92a4fe74ff05fc26b9da80ab2c17af5a931 (patch)
tree9df57ec67d82e432a214c23cd83cc42f9889c78f /channel.c
parentb8518110da185cd5655983811705ca6b420a883b (diff)
revert my changes that converted the jb on the channel to be dynamically
allocated. These changes caused crashes when using a channel type that did not support the jitterbuffer. Instead of fixing why it's crashing, I'm going to implement this in a better way next week. The way I did it caused a jitterbuffer to be allocated on every channel where the channel type supported jitterbuffers, even if they were disabled. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 84e2fbe79..30a1ad073 100644
--- a/channel.c
+++ b/channel.c
@@ -1015,8 +1015,7 @@ void ast_channel_free(struct ast_channel *chan)
ast_var_delete(vardata);
/* Destroy the jitterbuffer */
- if (chan->jb)
- ast_jb_destroy(chan);
+ ast_jb_destroy(chan);
ast_string_field_free_all(chan);
free(chan);