Commit 328d3107 authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

Don't leak a list of visuals (with advice of Jacek Caban).

parent e9438a87
...@@ -4342,6 +4342,7 @@ d3ddevice_init_at_startup(void *gl_handle) ...@@ -4342,6 +4342,7 @@ d3ddevice_init_at_startup(void *gl_handle)
return FALSE; return FALSE;
} }
gl_context = glXCreateContext(display, vis, NULL, GL_TRUE); gl_context = glXCreateContext(display, vis, NULL, GL_TRUE);
XFree(vis);
if (gl_context == NULL) { if (gl_context == NULL) {
LEAVE_GL(); LEAVE_GL();
......
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