summaryrefslogtreecommitdiff
path: root/channels/chan_features.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-01-23 22:59:55 +0000
committerJoshua Colp <jcolp@digium.com>2007-01-23 22:59:55 +0000
commitee3ab150f63428ff3f9fc267f4c8d6d422f96d6e (patch)
treeb92765da4114be19e3a3b4dcbe2a54c1a4ad8084 /channels/chan_features.c
parentac884e0c3ac65ed3d717ab39ced5e81f12b62b83 (diff)
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
Diffstat (limited to 'channels/chan_features.c')
-rw-r--r--channels/chan_features.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_features.c b/channels/chan_features.c
index c4d82d736..2fb720780 100644
--- a/channels/chan_features.c
+++ b/channels/chan_features.c
@@ -490,6 +490,7 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in
p->subs[index].owner = tmp;
if (!p->owner)
p->owner = tmp;
+ ast_module_ref(ast_module_info->self);
return tmp;
}