mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
astobj2: Add warn unused attribute to some functions.
* Fixed resulting warnings with improper use of ao2_global_obj_replace(). * Made a couple uses of ao2_global_obj_replace_unref(x, NULL) into the equivalent and more appropriate ao2_global_obj_release() call. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@398533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1353,7 +1353,7 @@ static void bridge_agent_hold_pull(struct ast_bridge *self, struct ast_bridge_ch
|
||||
*/
|
||||
static void bridge_agent_hold_dissolving(struct ast_bridge *self)
|
||||
{
|
||||
ao2_global_obj_replace_unref(agent_holding, NULL);
|
||||
ao2_global_obj_release(agent_holding);
|
||||
ast_bridge_base_v_table.dissolving(self);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user