Skip to content
Snippets Groups Projects
Commit cac68167 authored by Maxime Chapelet's avatar Maxime Chapelet Committed by Steve Lhomme
Browse files

vout: release decoder device when opengl module load fails

Decoder device must be released if module load fails else the decoder device
is still held causing a memory leak when the vout thread is released.
parent 98b9c97a
No related branches found
No related tags found
1 merge request!6554vout: release decoder device when opengl module load fails
Pipeline #546689 passed with stage
in 20 minutes and 58 seconds
......@@ -156,6 +156,8 @@ vlc_gl_t *vlc_gl_CreateOffscreen(vlc_object_t *parent,
vlc_gl_start, gl, width, height, gl_cfg);
if (gl->module == NULL)
{
if (gl->device)
vlc_decoder_device_Release(gl->device);
vlc_object_delete(gl);
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment