[vlc-devel] [PATCH] decoder: add missing objres clean on error path

Steve Lhomme robux4 at ycbcr.xyz
Fri Nov 22 16:44:19 CET 2019


LGTM

On 2019-11-22 16:09, Thomas Guillem wrote:
> ---
>   src/input/decoder_helpers.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c
> index 3f1eb9ff1d6..da64af09dbd 100644
> --- a/src/input/decoder_helpers.c
> +++ b/src/input/decoder_helpers.c
> @@ -195,6 +195,7 @@ vlc_decoder_device_Create(vout_window_t *window)
>       free(name);
>       if (module == NULL)
>       {
> +        vlc_objres_clear(VLC_OBJECT(&priv->device));
>           vlc_object_delete(&priv->device);
>           return NULL;
>       }
> -- 
> 2.20.1
> 
> _______________________________________________
> 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