mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Merge "stasis/control.c: Fix set_interval_hook() ref leak."
This commit is contained in:
@@ -1150,10 +1150,12 @@ static void set_interval_hook(struct ast_channel *chan)
|
||||
|
||||
if (ast_bridge_interval_hook(bridge_channel->features, 0, ms > 0 ? ms : 1,
|
||||
bridge_timeout, NULL, NULL, 0)) {
|
||||
ao2_ref(bridge_channel, -1);
|
||||
return;
|
||||
}
|
||||
|
||||
ast_queue_frame(bridge_channel->chan, &ast_null_frame);
|
||||
ao2_ref(bridge_channel, -1);
|
||||
}
|
||||
|
||||
int control_swap_channel_in_bridge(struct stasis_app_control *control, struct ast_bridge *bridge, struct ast_channel *chan, struct ast_channel *swap)
|
||||
|
Reference in New Issue
Block a user