[asterisk-commits] dlee: branch dlee/playback-rebase r389487 - in /team/dlee/playback-rebase: ./...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 22 10:57:13 CDT 2013


Author: dlee
Date: Wed May 22 10:57:09 2013
New Revision: 389487

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389487
Log:
Fix destruction order assert for stasis_bridging
........

Merged revisions 389454 from http://svn.asterisk.org/svn/asterisk/trunk

Modified:
    team/dlee/playback-rebase/   (props changed)
    team/dlee/playback-rebase/main/stasis_bridging.c

Propchange: team/dlee/playback-rebase/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Wed May 22 10:57:09 2013
@@ -1,1 +1,1 @@
-/trunk:1-389435
+/trunk:1-389486

Modified: team/dlee/playback-rebase/main/stasis_bridging.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/playback-rebase/main/stasis_bridging.c?view=diff&rev=389487&r1=389486&r2=389487
==============================================================================
--- team/dlee/playback-rebase/main/stasis_bridging.c (original)
+++ team/dlee/playback-rebase/main/stasis_bridging.c Wed May 22 10:57:09 2013
@@ -321,15 +321,17 @@
 
 void ast_stasis_bridging_shutdown(void)
 {
+	ao2_cleanup(bridge_topic_all);
+	bridge_topic_all = NULL;
+	bridge_topic_all_cached = stasis_caching_unsubscribe_and_join(
+		bridge_topic_all_cached);
+	ao2_cleanup(bridge_topic_pool);
+	bridge_topic_pool = NULL;
+
 	STASIS_MESSAGE_TYPE_CLEANUP(ast_bridge_snapshot_type);
 	STASIS_MESSAGE_TYPE_CLEANUP(ast_bridge_merge_message_type);
 	STASIS_MESSAGE_TYPE_CLEANUP(ast_channel_entered_bridge_type);
 	STASIS_MESSAGE_TYPE_CLEANUP(ast_channel_left_bridge_type);
-	ao2_cleanup(bridge_topic_all);
-	bridge_topic_all = NULL;
-	bridge_topic_all_cached = stasis_caching_unsubscribe(bridge_topic_all_cached);
-	ao2_cleanup(bridge_topic_pool);
-	bridge_topic_pool = NULL;
 }
 
 /*! \brief snapshot ID getter for caching topic */




More information about the asterisk-commits mailing list