[svn-commits] mmichelson: trunk r103283 - /trunk/apps/app_queue.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Feb 10 20:59:15 CST 2008


Author: mmichelson
Date: Sun Feb 10 20:59:14 2008
New Revision: 103283

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103283
Log:
Add a couple of comments to clarify the unreffing of queues.
Thanks to snuffy for the idea.

Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=103283&r1=103282&r2=103283
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Sun Feb 10 20:59:14 2008
@@ -1919,8 +1919,10 @@
 	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);
 }
 




More information about the svn-commits mailing list