[asterisk-commits] rmudgett: branch 13 r425627 - /branches/13/channels/chan_motif.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 15 14:32:01 CDT 2014


Author: rmudgett
Date: Wed Oct 15 14:31:54 2014
New Revision: 425627

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=425627
Log:
chan_motif: Cleanup jingle_tech.capabilities only once.

Modified:
    branches/13/channels/chan_motif.c

Modified: branches/13/channels/chan_motif.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_motif.c?view=diff&rev=425627&r1=425626&r2=425627
==============================================================================
--- branches/13/channels/chan_motif.c (original)
+++ branches/13/channels/chan_motif.c Wed Oct 15 14:31:54 2014
@@ -2756,7 +2756,6 @@
 	ast_format_cap_append_by_type(jingle_tech.capabilities, AST_MEDIA_TYPE_AUDIO);
 
 	if (aco_process_config(&cfg_info, 0)) {
-		ao2_ref(jingle_tech.capabilities, -1);
 		ast_log(LOG_ERROR, "Unable to read config file motif.conf. Module loaded but not running.\n");
 		aco_info_destroy(&cfg_info);
 		ao2_cleanup(jingle_tech.capabilities);
@@ -2784,7 +2783,6 @@
 	return 0;
 
 end:
-	ao2_cleanup(jingle_tech.capabilities);
 	ast_rtp_glue_unregister(&jingle_rtp_glue);
 
 	if (sched) {




More information about the asterisk-commits mailing list