Merged revisions 90348 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Fri, 30 Nov 2007 19:34:47 +0000 (19:34 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 30 Nov 2007 19:34:47 +0000 (19:34 +0000)
commitfac74808203c697677a87d34ccc409a3fe203a95
tree7a9b4cd5fcd7c6762668e03902ccc2b5f07e8343
parent45f98e541997648441c9c33175ddb7ef48f96ab2
Merged revisions 90348 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r90348 | russell | 2007-11-30 13:26:04 -0600 (Fri, 30 Nov 2007) | 8 lines

Change the behavior of ao2_link().  Previously, in inherited a reference.
Now, it automatically increases the reference count to reflect the reference
that is now held by the container.

This was done to be more consistent with ao2_unlink(), which automatically
releases the reference held by the container.  It also makes it so it is
no longer possible for a pointer to be invalid after ao2_link() returns.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c
channels/chan_iax2.c
include/asterisk/astobj2.h
main/astobj2.c
main/config.c
main/manager.c