From: BJ Weschke Date: Tue, 6 Jun 2006 20:44:50 +0000 (+0000) Subject: More updates. X-Git-Tag: 1.4.0-beta1~1019 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6dc79b1447f6bc44070f72c6cb8dcb6b567b33a6;p=thirdparty%2Fasterisk.git More updates. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32700 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_followme.c b/apps/app_followme.c index 2303fcf684..9eb4ae2666 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -1081,16 +1081,19 @@ static int app_exec(struct ast_channel *chan, void *data) 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)