mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +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)
|
if (stream->caps)
|
||||||
gst_caps_unref (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_list_free (stream->transports);
|
||||||
|
|
||||||
g_free (stream);
|
g_free (stream);
|
||||||
|
|
Loading…
Reference in a new issue