Commit e235d31e authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem

opengl: fix leak on error

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent a54d629e
......@@ -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;
}
if (desc->plane_count == 0)
{
/* Opaque chroma: load a module to handle it */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment