summaryrefslogtreecommitdiff
path: root/channels/chan_motif.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2012-12-03 14:56:36 +0000
committerJoshua Colp <jcolp@digium.com>2012-12-03 14:56:36 +0000
commitbd8fbeed01a2981405d1f79fd54ae3a09ef26858 (patch)
tree493c1e0b3181168973e8cc18a643f1f4b98d69ce /channels/chan_motif.c
parent712aaa98281224194444bf5f1cad8476bcfdc179 (diff)
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
Diffstat (limited to 'channels/chan_motif.c')
-rw-r--r--channels/chan_motif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_motif.c b/channels/chan_motif.c
index d56708149..0b07ed158 100644
--- a/channels/chan_motif.c
+++ b/channels/chan_motif.c
@@ -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);
}