Commit 3844c07d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

hls: Fixing a memory leak.

parent ce85748b
...@@ -274,6 +274,7 @@ static hls_stream_t *hls_Copy(hls_stream_t *src, const bool b_cp_segments) ...@@ -274,6 +274,7 @@ static hls_stream_t *hls_Copy(hls_stream_t *src, const bool b_cp_segments)
return NULL; return NULL;
} }
vlc_UrlParse(&dst->url, uri, 0); vlc_UrlParse(&dst->url, uri, 0);
free( uri );
if (!b_cp_segments) if (!b_cp_segments)
dst->segments = vlc_array_new(); dst->segments = vlc_array_new();
vlc_mutex_init(&dst->lock); vlc_mutex_init(&dst->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment