[asterisk-commits] dlee: branch dlee/unload-order r387128 - /team/dlee/unload-order/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 1 13:01:15 CDT 2013


Author: dlee
Date: Wed May  1 13:01:14 2013
New Revision: 387128

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=387128
Log:
app_stasis should bump the refcount on res_stasis

Modified:
    team/dlee/unload-order/apps/app_stasis.c

Modified: team/dlee/unload-order/apps/app_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/unload-order/apps/app_stasis.c?view=diff&rev=387128&r1=387127&r2=387128
==============================================================================
--- team/dlee/unload-order/apps/app_stasis.c (original)
+++ team/dlee/unload-order/apps/app_stasis.c Wed May  1 13:01:14 2013
@@ -93,6 +93,7 @@
 {
 	int r = 0;
 
+	stasis_app_ref();
 	r |= ast_register_application_xml(stasis, app_exec);
 	return r;
 }
@@ -100,8 +101,8 @@
 static int unload_module(void)
 {
 	int r = 0;
-
 	r |= ast_unregister_application(stasis);
+	stasis_app_unref();
 	return r;
 }
 




More information about the asterisk-commits mailing list