From: Brian Paul Date: Wed, 1 Sep 2010 18:39:04 +0000 (-0600) Subject: st/glx: re-order destruction of buffers, visuals X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ac66192a66b4370fd5601d876f5bdc84a4841b2;p=mesa.git st/glx: re-order destruction of buffers, visuals Free the buffers before the visuals. Fixes valgrind warning reported in fd.o bug 29919. --- diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index a90edfb0554..dcd50e19d73 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -599,8 +599,8 @@ destroy_visuals_on_display(Display *dpy) static int close_display_callback(Display *dpy, XExtCodes *codes) { - destroy_visuals_on_display(dpy); xmesa_destroy_buffers_on_display(dpy); + destroy_visuals_on_display(dpy); return 0; }