diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-23 22:59:55 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-23 22:59:55 +0000 |
commit | 8cea0763f195bf88e3842ed09674b7d1a7f09c40 (patch) | |
tree | b92765da4114be19e3a3b4dcbe2a54c1a4ad8084 /channels/chan_gtalk.c | |
parent | 15e3b6e0c04eaf9702935829af9dc2e7e8ec0707 (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: http://svn.digium.com/svn/asterisk/trunk@51801 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_gtalk.c')
-rw-r--r-- | channels/chan_gtalk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c index 430601a4c..fa1d216aa 100644 --- a/channels/chan_gtalk.c +++ b/channels/chan_gtalk.c @@ -952,6 +952,7 @@ static struct ast_channel *gtalk_new(struct gtalk *client, struct gtalk_pvt *i, if (!ast_strlen_zero(client->musicclass)) ast_string_field_set(tmp, musicclass, client->musicclass); i->owner = tmp; + ast_module_ref(ast_module_info->self); ast_copy_string(tmp->context, client->context, sizeof(tmp->context)); ast_copy_string(tmp->exten, i->exten, sizeof(tmp->exten)); /* Don't use ast_set_callerid() here because it will @@ -1464,6 +1465,7 @@ static int gtalk_hangup(struct ast_channel *ast) ast_mutex_unlock(&p->lock); gtalk_free_pvt(client, p); + ast_module_unref(ast_module_info->self); return 0; } |