[asterisk-commits] kmoore: branch kmoore/parking_unload r396784 - in /team/kmoore/parking_unload...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 15 13:11:59 CDT 2013


Author: kmoore
Date: Thu Aug 15 13:11:57 2013
New Revision: 396784

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396784
Log:
Ref the module in another place where it is used

Modified:
    team/kmoore/parking_unload/res/parking/parking_bridge_features.c
    team/kmoore/parking_unload/res/res_parking.c

Modified: team/kmoore/parking_unload/res/parking/parking_bridge_features.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/parking_unload/res/parking/parking_bridge_features.c?view=diff&rev=396784&r1=396783&r2=396784
==============================================================================
--- team/kmoore/parking_unload/res/parking/parking_bridge_features.c (original)
+++ team/kmoore/parking_unload/res/parking/parking_bridge_features.c Thu Aug 15 13:11:57 2013
@@ -452,7 +452,13 @@
 
 static int feature_park_call(struct ast_bridge_channel *bridge_channel, void *hook_pvt)
 {
-	return parking_park_call(bridge_channel, NULL, 0);
+	int res;
+
+	parking_ref();
+	res = parking_park_call(bridge_channel, NULL, 0);
+	parking_unref();
+
+	return res;
 }
 
 /*! \internal

Modified: team/kmoore/parking_unload/res/res_parking.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/parking_unload/res/res_parking.c?view=diff&rev=396784&r1=396783&r2=396784
==============================================================================
--- team/kmoore/parking_unload/res/res_parking.c (original)
+++ team/kmoore/parking_unload/res/res_parking.c Thu Aug 15 13:11:57 2013
@@ -1248,13 +1248,13 @@
 
 static int unload_module(void)
 {
+	unload_parking_bridge_features();
 	remove_all_configured_parking_lot_extensions();
-	unload_parking_bridge_features();
-	unload_parking_tests();
-	unload_parking_devstate();
+	unload_parking_applications();
 	unload_parking_manager();
 	unload_parking_ui();
-	unload_parking_applications();
+	unload_parking_devstate();
+	unload_parking_tests();
 	ao2_cleanup(parking_lot_container);
 	parking_lot_container = NULL;
 	aco_info_destroy(&cfg_info);




More information about the asterisk-commits mailing list