Fixed refcounting problems with chanspy AMI support.
authorDavid M. Lee <dlee@digium.com>
Wed, 5 Jun 2013 21:14:03 +0000 (21:14 +0000)
committerDavid M. Lee <dlee@digium.com>
Wed, 5 Jun 2013 21:14:03 +0000 (21:14 +0000)
commita36d38ab388327d72fdf4d952415438bc4fa609f
tree0284201e762d3eb06065037990e3d1a5ec6e93f4
parent94d8d0468f37184807c43559a02638cd922aebed
Fixed refcounting problems with chanspy AMI support.

The ast_multi_channel_blob_get_channel function does not bump the refcount on
the channel snapshot that it returns. This is typical for Stasis message
payloads, since being immutable means that the object won't get unreffed out
from underneath you.

The manager code for chanspy was unreffing the snapshots it got out of the
multi-channel blob, which was one unref too many.

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