From f292faebd7c24822d5eb34c073bc4980c2c03d7f Mon Sep 17 00:00:00 2001 From: Yurii Kolesnykov Date: Thu, 31 Jul 2025 16:28:32 +0100 Subject: [PATCH] Guard call to free_zombie_glx_drawable with condition from its definition Signed-off-by: Yurii Kolesnykov Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13589 Fixes: ad9db6b2591 ("glx: Free all populated fields of the glx_display on creation failure") Part-of: --- src/glx/glxext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index b4ac51f0f62..25117407ea4 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -1091,7 +1091,7 @@ __glXInitialize(Display * dpy) return dpyPriv; init_fail: -#if defined(GLX_DIRECT_RENDERING) && (!defined(GLX_USE_APPLEGL) || defined(GLX_USE_APPLE)) +#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) _mesa_set_destroy(dpyPriv->zombieGLXDrawable, free_zombie_glx_drawable); __glxHashDestroy(dpyPriv->drawHash); #endif