vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Thu May 17 
11:24:21 2018 +0200| [01d5eb891c2f22cbaef80cceb870f7b06179624e] | committer: 
Francois Cartegnie

prefetch: fix controls leaks on early cancel

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01d5eb891c2f22cbaef80cceb870f7b06179624e
---

 modules/stream_filter/prefetch.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/stream_filter/prefetch.c b/modules/stream_filter/prefetch.c
index 1efdc84b58..b3c6146363 100644
--- a/modules/stream_filter/prefetch.c
+++ b/modules/stream_filter/prefetch.c
@@ -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);

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to