Commit 99904a3a authored by Adam Richter's avatar Adam Richter

hw/xwin/glx/indirect.c glxWinScreenProbe(): Add free(screen) that was missing...

hw/xwin/glx/indirect.c glxWinScreenProbe(): Add free(screen) that was missing from an error path.  Caught by cppcheck.
parent 007d812a
...@@ -502,8 +502,10 @@ glxWinScreenProbe(ScreenPtr pScreen) ...@@ -502,8 +502,10 @@ glxWinScreenProbe(ScreenPtr pScreen)
return NULL; return NULL;
// Select the native GL implementation (WGL) // Select the native GL implementation (WGL)
if (glWinSelectImplementation(1)) if (glWinSelectImplementation(1)) {
free(screen);
return NULL; return NULL;
}
// create window class // create window class
#define WIN_GL_TEST_WINDOW_CLASS "XWinGLTest" #define WIN_GL_TEST_WINDOW_CLASS "XWinGLTest"
......
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