From 11ebf3a6aa525480eb0ec49a2d57fab7b631ba7f Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Mon, 12 May 2008 14:28:09 +0000 Subject: gst/rtpmanager/gstrtpsession.c: Make sure to unref the rtpsession returned by gst_pad_get_parent() to prevent a memor... Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_query_send_rtcp_src): Make sure to unref the rtpsession returned by gst_pad_get_parent() to prevent a memory leak. --- gst/rtpmanager/gstrtpsession.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/rtpmanager') diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 49a54fec..2afbf802 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -1528,6 +1528,9 @@ gst_rtp_session_query_send_rtcp_src (GstPad * pad, GstQuery * query) /* other queries simply fail for now */ break; } + + gst_object_unref (rtpsession); + return ret; } -- cgit v1.2.1