media formats: fix ref leak of peer for mwi subscription
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 18 Jul 2014 17:42:41 +0000 (17:42 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 18 Jul 2014 17:42:41 +0000 (17:42 +0000)
commitf91989d44ee5ee8c202c0808494996bccc5d88e8
treeea347a0bee1dbc945e00e8da863a0ffe88b15dd9
parent3ad198c835ff19f4e5703ce0354e02976e0e0f38
media formats: fix ref leak of peer for mwi subscription

Holding a reference to the peer during mwi subscriptions
resulted in a circular reference because the final event
message would not be sent until destruction of the peer.

Instead, pass the name of the peer to the event callback
so that it can fail gracefully after the peer has gone.

ASTERISK-23959
Review: https://reviewboard.asterisk.org/r/3754/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c