[vlc-devel] [PATCH] opengl: fix leak on error

Thomas Guillem thomas at gllm.fr
Wed Apr 18 14:50:50 CEST 2018



On Wed, Apr 18, 2018, at 14:43, Zhao Zhili wrote:
> ---
>  modules/video_output/opengl/vout_helper.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/modules/video_output/opengl/vout_helper.c b/modules/
> video_output/opengl/vout_helper.c
> index 2bf4f81..7b988de 100644
> --- a/modules/video_output/opengl/vout_helper.c
> +++ b/modules/video_output/opengl/vout_helper.c
> @@ -649,7 +649,10 @@ opengl_init_program(vout_display_opengl_t *vgl, 
> struct prgm *prgm,
>              vlc_fourcc_GetChromaDescription(fmt->i_chroma);
>  
>          if (desc == NULL)
> +        {
> +            vlc_object_release(tc);
>              return VLC_EGENERIC;
> +        }

Applied, thanks.

>          if (desc->plane_count == 0)
>          {
>              /* Opaque chroma: load a module to handle it */
> -- 
> 2.9.5
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list