hw/xwin/glx/indirect.c glxWinScreenProbe(): Add free(screen) that was missing from an error path. Caught by cppcheck.
This commit is contained in:
parent
007d812a83
commit
99904a3a7b
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue