diff --git a/subprojects/gst-plugins-bad/ext/srt/gstsrtsink.c b/subprojects/gst-plugins-bad/ext/srt/gstsrtsink.c index 3cb00bc52b..0c34b30f7e 100644 --- a/subprojects/gst-plugins-bad/ext/srt/gstsrtsink.c +++ b/subprojects/gst-plugins-bad/ext/srt/gstsrtsink.c @@ -170,6 +170,7 @@ gst_srt_sink_stop (GstBaseSink * bsink) { GstSRTSink *self = GST_SRT_SINK (bsink); + g_clear_pointer (&self->headers, gst_buffer_list_unref); gst_srt_object_close (self->srtobject); return TRUE;