diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 0a266e26a5..c05192f9b5 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -861,8 +861,10 @@ gst_hls_demux_reset (GstHLSDemux * demux, gboolean dispose) gst_adapter_clear (demux->download); - if (demux->client) + if (demux->client) { gst_m3u8_client_free (demux->client); + demux->client = NULL; + } if (!dispose) { demux->client = gst_m3u8_client_new ("");