[asterisk-commits] trunk r32700 - /trunk/apps/app_followme.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jun 6 13:44:50 MST 2006


Author: bweschke
Date: Tue Jun  6 15:44:50 2006
New Revision: 32700

URL: http://svn.digium.com/view/asterisk?rev=32700&view=rev
Log:
 More updates.


Modified:
    trunk/apps/app_followme.c

Modified: trunk/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_followme.c?rev=32700&r1=32699&r2=32700&view=diff
==============================================================================
--- trunk/apps/app_followme.c (original)
+++ trunk/apps/app_followme.c Tue Jun  6 15:44:50 2006
@@ -1081,16 +1081,19 @@
 
 static int unload_module(void *mod)
 {
+	STANDARD_HANGUP_LOCALUSERS;
+	ast_unregister_application(app);
 	struct ast_call_followme *f;
 	/* Free Memory. Yeah! I'm free! */
+	AST_LIST_LOCK(&followmes);
 	AST_LIST_TRAVERSE_SAFE_BEGIN(&followmes, f, entry) {
 		free_numbers(f);
 		AST_LIST_REMOVE_CURRENT(&followmes, entry);
 		free(f);
 	}
 	AST_LIST_TRAVERSE_SAFE_END
-	STANDARD_HANGUP_LOCALUSERS;
-	return ast_unregister_application(app);
+	AST_LIST_UNLOCK(&followmes);
+	return 0;
 }
 
 static int load_module(void *mod)



More information about the asterisk-commits mailing list