stasis.c: Misc code cleanups.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 28 Feb 2014 23:31:58 +0000 (23:31 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 28 Feb 2014 23:31:58 +0000 (23:31 +0000)
commitf9c031ec3986f40c216b11206ff02c96cfd1d1b7
treec99623ef9ffb148448e1c57f8e0c228c04e4ef22
parentd820685e831c39232d333be1db653eab08c84e34
stasis.c: Misc code cleanups.

* Remove some unnecessary RAII_VAR() usage.

* Made the struct stasis_subscription ao2 object use the ao2 lock instead
of a redundant join_lock in the struct for ast_cond_wait().

* Removed locks on some ao2 objects that don't need the lock.

* Made the topic pool entries container use the ao2 template functions.

* Add some missing allocation failure checks.

* Add missing cleanup in off nominal path of dispatch_message().
........

Merged revisions 409270 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/stasis.c