From: Richard Mudgett Date: Mon, 28 Mar 2016 19:23:59 +0000 (-0500) Subject: core_unreal.c: Add clarification comment about channel ref. X-Git-Tag: 13.9.0-rc1~59^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f53f1d89e18608d2b193bfcaace4eed9fb0ce0c;p=thirdparty%2Fasterisk.git core_unreal.c: Add clarification comment about channel ref. Change-Id: I0be0627260cd8d6b6c3cc345949dcfdf32eff1f3 --- diff --git a/main/core_unreal.c b/main/core_unreal.c index 028e371f61..fc311ec5d3 100644 --- a/main/core_unreal.c +++ b/main/core_unreal.c @@ -808,9 +808,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;