hw/xwin/glx/indirect.c glxWinScreenProbe(): Add free(screen) that was missing from an error path. Caught by cppcheck.

This commit is contained in:
Adam Richter 2019-05-01 15:21:48 -07:00
parent 007d812a83
commit 99904a3a7b

View File

@ -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"