Fix lock destruction/unlock inversion
authorKinsey Moore <kmoore@digium.com>
Tue, 19 Mar 2013 19:07:46 +0000 (19:07 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 19 Mar 2013 19:07:46 +0000 (19:07 +0000)
commit6aee9178d59d0cb51319fb3662872f478fe6b4e5
tree029e4e78cf618922c88d8c38574b28fd09b886ae
parented382681e59ac1234adf1e39c7482fa0616b3d1c
Fix lock destruction/unlock inversion

When using scoped locks, the unref of an AO2 object should happen after
the unlock occurs which requires usage of scoped refs.

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