From 6ac66192a66b4370fd5601d876f5bdc84a4841b2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 1 Sep 2010 12:39:04 -0600 Subject: [PATCH] st/glx: re-order destruction of buffers, visuals Free the buffers before the visuals. Fixes valgrind warning reported in fd.o bug 29919. --- src/gallium/state_trackers/glx/xlib/glx_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2