[asterisk-commits] russell: trunk r80388 - /trunk/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 22 15:46:17 CDT 2007


Author: russell
Date: Wed Aug 22 15:46:16 2007
New Revision: 80388

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80388
Log:
Unsubscribe from MWI events in the peer destructor

Modified:
    trunk/channels/chan_iax2.c

Modified: trunk/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=80388&r1=80387&r2=80388
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Wed Aug 22 15:46:16 2007
@@ -9406,6 +9406,9 @@
 	if (peer->dnsmgr)
 		ast_dnsmgr_release(peer->dnsmgr);
 
+	if (peer->mwi_event_sub)
+		ast_event_unsubscribe(peer->mwi_event_sub);
+
 	ast_string_field_free_pools(peer);
 }
 




More information about the asterisk-commits mailing list