[asterisk-commits] russell: branch russell/iax_refcount r80287 - /team/russell/iax_refcount/incl...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 22 12:06:06 CDT 2007


Author: russell
Date: Wed Aug 22 12:06:05 2007
New Revision: 80287

URL: http://svn.digium.com/view/asterisk?view=rev&rev=80287
Log:
Fix a comment about iterating.  ao2_iterator_next does not automatically release
the reference to the last object.  Thanks to mmichelson for noticing this one, too.

Modified:
    team/russell/iax_refcount/include/asterisk/astobj2.h

Modified: team/russell/iax_refcount/include/asterisk/astobj2.h
URL: http://svn.digium.com/view/asterisk/team/russell/iax_refcount/include/asterisk/astobj2.h?view=diff&rev=80287&r1=80286&r2=80287
==============================================================================
--- team/russell/iax_refcount/include/asterisk/astobj2.h (original)
+++ team/russell/iax_refcount/include/asterisk/astobj2.h Wed Aug 22 12:06:05 2007
@@ -443,10 +443,7 @@
 then we can use o = ao2_iterator_next() to move from one
 element to the next. Remember that the object returned by
 ao2_iterator_next() has its refcount incremented,
-and the refcount will be decremented by the next call to
-ao2_iterator_next(). If we terminate the loop early,
-we need to release the refcount explicitly when we are
-done with the object.
+and the reference must be explicitly released when done with it.
 Example:
 
     \code




More information about the asterisk-commits mailing list