aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-22 17:49:28 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-22 17:49:28 +0000
commita2f216217cd2a0b81b04c4d90d7021f1f306acc7 (patch)
treeea60adee1198423075815ff9722d8ed3e6aebd2d /channel.c
parentdcc31562c9b23d8355c6cb246a82323d6e271df0 (diff)
don't blow up if a jitterbuffer is not in use
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35555 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 30a1ad073..84e2fbe79 100644
--- a/channel.c
+++ b/channel.c
@@ -1015,7 +1015,8 @@ void ast_channel_free(struct ast_channel *chan)
ast_var_delete(vardata);
/* Destroy the jitterbuffer */
- ast_jb_destroy(chan);
+ if (chan->jb)
+ ast_jb_destroy(chan);
ast_string_field_free_all(chan);
free(chan);