DDRAW: don't leak visuals
Saulius Krasuckas
saulius2 at ar.fi.lt
Mon Aug 22 12:55:04 CDT 2005
Log message:
Saulius Krasuckas <saulius.krasuckas at ieee.org>
Don't leak a list of visuals (with advice of Jacek Caban).
? dlls/ddraw/tests/ddraw_test.dsp
Index: dlls/ddraw/device_opengl.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/device_opengl.c,v
retrieving revision 1.7
diff -p -u -r1.7 device_opengl.c
--- dlls/ddraw/device_opengl.c 11 Aug 2005 10:57:47 -0000 1.7
+++ dlls/ddraw/device_opengl.c 22 Aug 2005 17:49:06 -0000
@@ -4342,6 +4342,7 @@ d3ddevice_init_at_startup(void *gl_handl
return FALSE;
}
gl_context = glXCreateContext(display, vis, NULL, GL_TRUE);
+ XFree(vis);
if (gl_context == NULL) {
LEAVE_GL();
More information about the wine-patches
mailing list