diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-22 17:49:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-22 17:49:28 +0000 |
commit | a2f216217cd2a0b81b04c4d90d7021f1f306acc7 (patch) | |
tree | ea60adee1198423075815ff9722d8ed3e6aebd2d /channel.c | |
parent | dcc31562c9b23d8355c6cb246a82323d6e271df0 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |