From: Mark Michelson Date: Mon, 11 Feb 2008 02:59:14 +0000 (+0000) Subject: Add a couple of comments to clarify the unreffing of queues. X-Git-Tag: 1.6.0-beta3~2^2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd02fd27635bb9de4794e684f2daccb814e537c8;p=thirdparty%2Fasterisk.git Add a couple of comments to clarify the unreffing of queues. Thanks to snuffy for the idea. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@103283 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index ad32205fb6..c89b2d629f 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); }