Commit 9781b239 authored by Rafaël Carré's avatar Rafaël Carré

projectm: fix NULL or uninitialized pointer dereference

parent ff429160
......@@ -293,7 +293,7 @@ static void *Thread( void *p_data )
filter_sys_t *p_sys = p_filter->p_sys;
video_format_t fmt;
vlc_gl_t *gl;
vlc_gl_t *gl = NULL;
unsigned int i_last_width = 0;
unsigned int i_last_height = 0;
locale_t loc;
......@@ -467,6 +467,7 @@ static void *Thread( void *p_data )
assert(0);
error:
if (gl)
vlc_gl_ReleaseCurrent( gl );
p_sys->b_error = true;
vlc_sem_post( &p_sys->ready );
......
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