[svn-commits] trunk r35555 - /trunk/channel.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jun 22 10:49:29 MST 2006


Author: russell
Date: Thu Jun 22 12:49:28 2006
New Revision: 35555

URL: http://svn.digium.com/view/asterisk?rev=35555&view=rev
Log:
don't blow up if a jitterbuffer is not in use

Modified:
    trunk/channel.c

Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=35555&r1=35554&r2=35555&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Thu Jun 22 12:49:28 2006
@@ -1015,7 +1015,8 @@
 		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);



More information about the svn-commits mailing list