diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 20:44:50 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-06 20:44:50 +0000 |
commit | 409c0a25a49edc59d7159e1c8fa15a6139cc7fe4 (patch) | |
tree | 8e1604d161e1340020d991efcfeb4efa083a68a3 /apps/app_followme.c | |
parent | bb7727aa15f694675daa9dd5ec5546d0ca6b2567 (diff) |
More updates.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32700 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r-- | apps/app_followme.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index 2303fcf68..9eb4ae266 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) |