Merged revisions 82263 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 20:50:42 +0000 (20:50 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 11 Sep 2007 20:50:42 +0000 (20:50 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r82263 | russell | 2007-09-11 15:49:34 -0500 (Tue, 11 Sep 2007) | 5 lines

Fix another missing unref of member objects.  This one was pointed out by Marta.
When building the outgoing list in try_calling(), a member reference is stored
in each outgoing entry.  However, when this list got destroyed, the reference
was not released.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 976c464..a12c867 100644 (file)
@@ -1664,6 +1664,8 @@ static void hangupcalls(struct callattempt *outgoing, struct ast_channel *except
                        ast_hangup(outgoing->chan);
                oo = outgoing;
                outgoing = outgoing->q_next;
+               if (oo->member)
+                       ao2_ref(oo->member, -1);
                ast_free(oo);
        }
 }