mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
media: don't leak session pads
This commit is contained in:
parent
9a38f95417
commit
94b6da045a
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue