Commit 6d1ff5f9 authored by hartman's avatar hartman
Browse files

* Fix a X11 GLX crash

parent a8ff7c35
......@@ -207,7 +207,10 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
if (!glXQueryVersion( p_display, &i_maj, &i_min ) )
{
msg_Err( p_this, "glXQueryVersion failed" );
XCloseDisplay( p_display );
if( p_display != NULL )
{
XCloseDisplay( p_display );
}
return VLC_EGENERIC;
}
if( i_maj <= 0 || ((i_maj == 1) && (i_min < 3)) )
......
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