[asterisk-commits] rmudgett: branch 10 r375496 - /branches/10/bridges/bridge_softmix.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 30 14:20:32 CDT 2012


Author: rmudgett
Date: Tue Oct 30 14:20:28 2012
New Revision: 375496

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=375496
Log:
Fix ConfBridge crash if no timing module loaded.

(closes issue ASTERISK-19448)
Reported by: feyfre
Patches:
      smfix.patch (license #6099) patch uploaded by feyfre
      Modified for coding guidelines.

Modified:
    branches/10/bridges/bridge_softmix.c

Modified: branches/10/bridges/bridge_softmix.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/bridges/bridge_softmix.c?view=diff&rev=375496&r1=375495&r2=375496
==============================================================================
--- branches/10/bridges/bridge_softmix.c (original)
+++ branches/10/bridges/bridge_softmix.c Tue Oct 30 14:20:28 2012
@@ -297,7 +297,10 @@
 static void softmix_bridge_data_destroy(void *obj)
 {
 	struct softmix_bridge_data *softmix_data = obj;
-	ast_timer_close(softmix_data->timer);
+
+	if (softmix_data->timer) {
+		ast_timer_close(softmix_data->timer);
+	}
 }
 
 /*! \brief Function called when a bridge is created */




More information about the asterisk-commits mailing list