[asterisk-commits] rmudgett: branch group/media_formats-reviewed-trunk r418783 - /team/group/med...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 16 13:58:06 CDT 2014


Author: rmudgett
Date: Wed Jul 16 13:58:03 2014
New Revision: 418783

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=418783
Log:
chan_misdn: Use ao2_cleanup instead of ao2_ref(-1) when unloading.

Modified:
    team/group/media_formats-reviewed-trunk/channels/chan_misdn.c

Modified: team/group/media_formats-reviewed-trunk/channels/chan_misdn.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats-reviewed-trunk/channels/chan_misdn.c?view=diff&rev=418783&r1=418782&r2=418783
==============================================================================
--- team/group/media_formats-reviewed-trunk/channels/chan_misdn.c (original)
+++ team/group/media_formats-reviewed-trunk/channels/chan_misdn.c Wed Jul 16 13:58:03 2014
@@ -11296,7 +11296,7 @@
 #if defined(AST_MISDN_ENHANCEMENTS)
 	misdn_cc_destroy();
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
-	ao2_ref(misdn_tech.capabilities, -1);
+	ao2_cleanup(misdn_tech.capabilities);
 	misdn_tech.capabilities = NULL;
 
 	return 0;




More information about the asterisk-commits mailing list