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
1 changed files with 3 additions and 1 deletions

View File

@ -502,8 +502,10 @@ glxWinScreenProbe(ScreenPtr pScreen)
return NULL;
// Select the native GL implementation (WGL)
if (glWinSelectImplementation(1))
if (glWinSelectImplementation(1)) {
free(screen);
return NULL;
}
// create window class
#define WIN_GL_TEST_WINDOW_CLASS "XWinGLTest"