diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-11 02:59:14 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-11 02:59:14 +0000 |
commit | 5e652c0adefed087aa42925179f3cc9ddf7dbf9d (patch) | |
tree | db4ee72c8b6b40559b839312e0fefe88d571ba5b /apps | |
parent | 0208ffa7e70d664199a87f9fd6f0bd9ad8117a70 (diff) |
Add a couple of comments to clarify the unreffing of queues.
Thanks to snuffy for the idea.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103283 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index ad32205fb..c89b2d629 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1919,8 +1919,10 @@ static void leave_queue(struct queue_ent *qe) if (q->dead) { /* It's dead and nobody is in it, so kill it */ ao2_unlink(queues, q); + /* unref the container's reference to the queue */ queue_unref(q); } + /* unref the explicit ref earlier in the function */ queue_unref(q); } |