Commit d5cd05a0 authored by Alexander Larsson's avatar Alexander Larsson

GdkGLContextX11: Don't free NULL visual info

parent 778865f3
......@@ -634,10 +634,7 @@ find_fbconfig_for_visual (GdkDisplay *display,
visinfo = glXGetVisualFromFBConfig (dpy, configs[i]);
if (visinfo == NULL)
{
XFree (visinfo);
continue;
}
continue;
if (visinfo->visualid != xvisual_id)
continue;
......
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