mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 51788 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51788 | file | 2007-01-23 17:46:31 -0500 (Tue, 23 Jan 2007) | 2 lines Update channel drivers to use module referencing so that unloading them while in use will not result in crashes. (issue #8897 reported by junky) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51801 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1772,6 +1772,7 @@ static int iax2_predestroy(int callno)
|
||||
c->tech_pvt = NULL;
|
||||
ast_queue_hangup(c);
|
||||
pvt->owner = NULL;
|
||||
ast_module_unref(ast_module_info->self);
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -3402,6 +3403,7 @@ static struct ast_channel *ast_iax2_new(int callno, int state, int capability)
|
||||
for (v = i->vars ; v ; v = v->next)
|
||||
pbx_builtin_setvar_helper(tmp, v->name, v->value);
|
||||
|
||||
ast_module_ref(ast_module_info->self);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user