From b8408946b756091796797d38b6c0b8fd305e8249 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 25 Nov 2008 15:12:06 +0000 Subject: [PATCH] gst/rtpmanager/gstrtpsession.c: Fix event leak. Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_event_send_rtcp_src): Fix event leak. --- gst/rtpmanager/gstrtpsession.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index c8dfdd1820..1c2231830e 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -1373,6 +1373,7 @@ gst_rtp_session_event_recv_rtp_sink (GstPad * pad, GstEvent * event) return ret; } + static GList * gst_rtp_session_internal_links (GstPad * pad) { @@ -1551,7 +1552,7 @@ gst_rtp_session_event_send_rtcp_src (GstPad * pad, GstEvent * event) { GstRtpSession *rtpsession; GstRtpSessionPrivate *priv; - gboolean ret = FALSE; + gboolean ret; rtpsession = GST_RTP_SESSION (gst_pad_get_parent (pad)); priv = rtpsession->priv; @@ -1560,10 +1561,13 @@ gst_rtp_session_event_send_rtcp_src (GstPad * pad, GstEvent * event) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_LATENCY: + gst_event_unref (event); ret = TRUE; break; default: /* other events simply fail for now */ + gst_event_unref (event); + ret = FALSE; break; }