Ken Thomases : winex11.drv:
Copy the GL extensions string because it may be freed.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 25 06:12:17 CST 2007
Module: wine
Branch: master
Commit: a790ff55686cdf957903d3d9252909322a85bea2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a790ff55686cdf957903d3d9252909322a85bea2
Author: Ken Thomases <ken at codeweavers.com>
Date: Wed Jan 24 23:51:24 2007 -0600
winex11.drv: Copy the GL extensions string because it may be freed.
---
dlls/winex11.drv/opengl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index ebc980e..aaeb0a3 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -305,7 +305,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo
}
WineGLInfo.glVersion = (const char *) pglGetString(GL_VERSION);
- WineGLInfo.glExtensions = (const char *) pglGetString(GL_EXTENSIONS);
+ WineGLInfo.glExtensions = strdup((const char *) pglGetString(GL_EXTENSIONS));
/* Get the common GLX version supported by GLX client and server ( major/minor) */
pglXQueryVersion(gdi_display, &WineGLInfo.glxVersion[0], &WineGLInfo.glxVersion[1]);
More information about the wine-cvs
mailing list