From 94b6da045ae61a1e90a07b31390587acff8138ee Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Jun 2009 19:20:26 +0200 Subject: [PATCH] media: don't leak session pads --- gst/rtsp-server/rtsp-media.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 129c1f3297..49e3bca8f5 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -115,6 +115,17 @@ gst_rtsp_media_stream_free (GstRTSPMediaStream *stream) if (stream->caps) gst_caps_unref (stream->caps); + if (stream->send_rtp_sink) + gst_object_unref (stream->send_rtp_sink); + if (stream->send_rtp_src) + gst_object_unref (stream->send_rtp_src); + if (stream->send_rtcp_src) + gst_object_unref (stream->send_rtcp_src); + if (stream->recv_rtcp_sink) + gst_object_unref (stream->recv_rtcp_sink); + if (stream->recv_rtp_sink) + gst_object_unref (stream->recv_rtp_sink); + g_list_free (stream->transports); g_free (stream);