srt: Plug leak of headers

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1040>
This commit is contained in:
Jan Alexander Steffens (heftig) 2021-05-07 11:11:31 +02:00 committed by GStreamer Marge Bot
parent 49af6a831d
commit df403df2ca

View file

@ -170,6 +170,7 @@ gst_srt_sink_stop (GstBaseSink * bsink)
{ {
GstSRTSink *self = GST_SRT_SINK (bsink); GstSRTSink *self = GST_SRT_SINK (bsink);
g_clear_pointer (&self->headers, gst_buffer_list_unref);
gst_srt_object_close (self->srtobject); gst_srt_object_close (self->srtobject);
return TRUE; return TRUE;