mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Fix an RTP instance reference count leak in chan_motif.
When setting up an RTP instance the RTCP portion of the instance keeps a reference to the instance itself. In order to release this reference and stop RTCP the stop API call must be called before destroying the instance. (closes issue ASTERISK-20751) Reported by: joshoa ........ Merged revisions 377021 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -434,10 +434,12 @@ static void jingle_session_destructor(void *obj)
|
||||
}
|
||||
|
||||
if (session->rtp) {
|
||||
ast_rtp_instance_stop(session->rtp);
|
||||
ast_rtp_instance_destroy(session->rtp);
|
||||
}
|
||||
|
||||
if (session->vrtp) {
|
||||
ast_rtp_instance_stop(session->vrtp);
|
||||
ast_rtp_instance_destroy(session->vrtp);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user