xlib: fix memory leak on Display close
authorJohn Sheu <sheu@google.com>
Tue, 12 Apr 2016 18:53:00 +0000 (12:53 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Apr 2016 19:56:41 +0000 (13:56 -0600)
commit7f0854724827bd34b9e64ab0c9cabc328e404c62
tree4f8d35d74c9a7bf4c7b21c252156181963c35576
parentd04bb14d04d2f2f03cdaa3d78121d338a81de2e4
xlib: fix memory leak on Display close

The XMesaVisual instances freed in the visuals table on display close
are being freed with a free() call, instead of XMesaDestroyVisual(),
causing a memory leak.

Signed-off-by: John Sheu <sheu@google.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/x11/fakeglx.c
src/mesa/drivers/x11/xm_api.c