[vlc-commits] prefetch: fix controls leaks on early cancel
Francois Cartegnie
git at videolan.org
Thu May 17 14:16:06 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at 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);
More information about the vlc-commits
mailing list