[vlc-commits] glspectrum: fix leaks
Rémi Denis-Courmont
git at videolan.org
Sun Apr 12 08:20:14 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 12 09:09:27 2020 +0300| [16ffd7c0d6325cd6f67f6c599135656e4bce7f65] | committer: Rémi Denis-Courmont
glspectrum: fix leaks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16ffd7c0d6325cd6f67f6c599135656e4bce7f65
---
modules/visualization/glspectrum.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/visualization/glspectrum.c b/modules/visualization/glspectrum.c
index 84fad8f036..f72e6bd92e 100644
--- a/modules/visualization/glspectrum.c
+++ b/modules/visualization/glspectrum.c
@@ -154,8 +154,11 @@ static int Open(vlc_object_t * p_this)
/* Create the thread */
if (vlc_clone(&p_sys->thread, Thread, p_filter,
- VLC_THREAD_PRIORITY_VIDEO))
+ VLC_THREAD_PRIORITY_VIDEO)) {
+ vlc_gl_surface_Destroy(p_sys->gl);
+ block_FifoRelease(p_sys->fifo);
goto error;
+ }
p_filter->fmt_in.audio.i_format = VLC_CODEC_FL32;
p_filter->fmt_out.audio = p_filter->fmt_in.audio;
More information about the vlc-commits
mailing list