From f5ae5e27c83e7ada24d9c523fc4271a6e4ee9ef3 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Fri, 6 Sep 2013 19:26:48 +0000 Subject: 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. ........ Merged revisions 398533 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398557 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_agent_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_agent_pool.c') diff --git a/apps/app_agent_pool.c b/apps/app_agent_pool.c index cb5e0ce17..54a0a4a50 100644 --- a/apps/app_agent_pool.c +++ b/apps/app_agent_pool.c @@ -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); } -- cgit v1.2.3