mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
More updates.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1081,16 +1081,19 @@ static int app_exec(struct ast_channel *chan, void *data)
|
|||||||
|
|
||||||
static int unload_module(void *mod)
|
static int unload_module(void *mod)
|
||||||
{
|
{
|
||||||
|
STANDARD_HANGUP_LOCALUSERS;
|
||||||
|
ast_unregister_application(app);
|
||||||
struct ast_call_followme *f;
|
struct ast_call_followme *f;
|
||||||
/* Free Memory. Yeah! I'm free! */
|
/* Free Memory. Yeah! I'm free! */
|
||||||
|
AST_LIST_LOCK(&followmes);
|
||||||
AST_LIST_TRAVERSE_SAFE_BEGIN(&followmes, f, entry) {
|
AST_LIST_TRAVERSE_SAFE_BEGIN(&followmes, f, entry) {
|
||||||
free_numbers(f);
|
free_numbers(f);
|
||||||
AST_LIST_REMOVE_CURRENT(&followmes, entry);
|
AST_LIST_REMOVE_CURRENT(&followmes, entry);
|
||||||
free(f);
|
free(f);
|
||||||
}
|
}
|
||||||
AST_LIST_TRAVERSE_SAFE_END
|
AST_LIST_TRAVERSE_SAFE_END
|
||||||
STANDARD_HANGUP_LOCALUSERS;
|
AST_LIST_UNLOCK(&followmes);
|
||||||
return ast_unregister_application(app);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int load_module(void *mod)
|
static int load_module(void *mod)
|
||||||
|
|||||||
Reference in New Issue
Block a user