summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
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);