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

This commit is contained in:
Saulius Krasuckas 2005-08-22 18:58:27 +00:00 committed by Alexandre Julliard
parent e9438a87f6
commit 328d3107e1

View File

@ -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();