summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-03-31 00:48:42 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-03-31 00:48:42 -0500
commitb2bcad9d6235b233e2da0e98989bbe3e049f0359 (patch)
treee27dc13b513604fcf7a72983edb975756b927e9b
parent41cedd98963b4d566096ec8456b320249e3a3517 (diff)
parent34457dd9dbbe74b0f16ca4ca7aabeb4bcd6e107d (diff)
Merge "core_unreal.c: Add clarification comment about channel ref."
-rw-r--r--main/core_unreal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/core_unreal.c b/main/core_unreal.c
index da0bb43bb..1f5c202ba 100644
--- a/main/core_unreal.c
+++ b/main/core_unreal.c
@@ -805,9 +805,11 @@ int ast_unreal_channel_push_to_bridge(struct ast_channel *ast, struct ast_bridge
return -1;
}
+ /* The bridge thread now controls the chan ref from the ast_unreal_pvt */
ao2_lock(p);
ast_set_flag(p, AST_UNREAL_CARETAKER_THREAD);
ao2_unlock(p);
+
ast_channel_unref(chan);
return 0;