aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-07 01:03:45 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-07 01:03:45 +0000
commite25b9efb0f05fab50cbb65dbf1113b2b02baa2f8 (patch)
tree3c4cb34245dc69ec59256646549ad7a1cfc89329 /channel.c
parentc1c7c4568b629a6772e806f77a46df3c1d84657b (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@39080 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 738c6581b..26e5e05ba 100644
--- a/channel.c
+++ b/channel.c
@@ -1307,10 +1307,16 @@ int ast_hangup(struct ast_channel *chan)
return 0;
}
free_translation(chan);
- if (chan->stream) /* Close audio stream */
+ /* Close audio stream */
+ if (chan->stream) {
ast_closestream(chan->stream);
- if (chan->vstream) /* Close video stream */
+ chan->stream = NULL;
+ }
+ /* Close video stream */
+ if (chan->vstream) {
ast_closestream(chan->vstream);
+ chan->vstream = NULL;
+ }
if (chan->sched) {
sched_context_destroy(chan->sched);
chan->sched = NULL;