mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
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:
parent
acbb2d018c
commit
f292faebd7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue