[asterisk-commits] oej: branch oej/mutestream-trunk r215021 - /team/oej/mutestream-trunk/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 31 13:08:44 CDT 2009


Author: oej
Date: Mon Aug 31 13:08:41 2009
New Revision: 215021

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215021
Log:
Adding module ref/unref

Modified:
    team/oej/mutestream-trunk/res/res_mutestream.c

Modified: team/oej/mutestream-trunk/res/res_mutestream.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/oej/mutestream-trunk/res/res_mutestream.c?view=diff&rev=215021&r1=215020&r2=215021
==============================================================================
--- team/oej/mutestream-trunk/res/res_mutestream.c (original)
+++ team/oej/mutestream-trunk/res/res_mutestream.c Mon Aug 31 13:08:41 2009
@@ -69,6 +69,7 @@
 	/* Destroy the audiohook, and destroy ourselves */
 	ast_audiohook_destroy(&mute->audiohook);
 	free(mute);
+	ast_module_unref(ast_module_info->self);
 
 	return;
 }
@@ -164,6 +165,7 @@
 			ast_log(LOG_ERROR, "Failed to attach audiohook for muting channel %s\n", chan->name);
 			return -1;
 		}
+		ast_module_ref(ast_module_info->self);
 		if (option_debug) {
 			ast_log(LOG_DEBUG, "*** Initialized audiohook on channel %s\n", chan->name);
 		}




More information about the asterisk-commits mailing list