Commit 01d5eb89 authored by François Cartegnie's avatar François Cartegnie 🤞

prefetch: fix controls leaks on early cancel

parent 38ab40ee
......@@ -532,6 +532,12 @@ static void Close (vlc_object_t *obj)
vlc_cond_destroy(&sys->wait_data);
vlc_mutex_destroy(&sys->lock);
while(sys->controls)
{
struct stream_ctrl *ctrl = sys->controls;
sys->controls = ctrl->next;
free(ctrl);
}
free(sys->buffer);
free(sys->content_type);
free(sys);
......
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