glx: fix memory leak related to __glXCloseDisplay()
authorPatrick Lerda <patrick9876@free.fr>
Mon, 13 Mar 2023 12:02:10 +0000 (13:02 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 20 Mar 2023 21:12:54 +0000 (21:12 +0000)
commit84762bb1cfe458000e63c30147de33c925f2c016
tree29fb383f2cb70bc42a37c7ab0dc9b50dcd47c588
parent19b89c80777b647da0393cc62c69eba6b12e0c4e
glx: fix memory leak related to __glXCloseDisplay()

Indeed, the unbind function is not called which could lead
to an unbalanced refcount state for the "drawable" object.

For instance, with "piglit/bin/glx-fbo-binding -auto"
while setting GALLIUM_REFCNT_LOG=refcnt.log.

Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22024>
src/glx/glxext.c