Change the behavior of ao2_link(). Previously, in inherited a reference.
commite3c77ce444d6ec966038ccf702bda94ee1ea39a8
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Fri, 30 Nov 2007 19:26:04 +0000 (30 19:26 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Fri, 30 Nov 2007 19:26:04 +0000 (30 19:26 +0000)
tree9cb3c976f72d1999221cfb9a689ea8d7929fa8ad
parenta1e5ead77381b388dbc70a36bde3b6c2cb282756
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: http://svn.digium.com/svn/asterisk/branches/1.4@90348 614ede4d-c843-0410-af14-a771ab80d22e
apps/app_queue.c
channels/chan_iax2.c
include/asterisk/astobj2.h
main/astobj2.c
main/manager.c