Guard call to free_zombie_glx_drawable with condition from its definition
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13589
Fixes: ad9db6b259 ("glx: Free all populated fields of the glx_display on creation failure")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36495>
This commit is contained in:
committed by
Marge Bot
parent
acbb2d018c
commit
f292faebd7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user