summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-09-01 12:39:04 -0600
committerBrian Paul <[email protected]>2010-09-01 12:40:31 -0600
commit6ac66192a66b4370fd5601d876f5bdc84a4841b2 (patch)
treef8834f255048ad12fea26e5ab70caf44ed92ad34 /src/gallium
parentdd5ef33e3c2ac7886ca71344e41201d0be2062c0 (diff)
st/glx: re-order destruction of buffers, visuals
Free the buffers before the visuals. Fixes valgrind warning reported in fd.o bug 29919.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/glx/xlib/glx_api.c2
1 files changed, 1 insertions, 1 deletions
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;
}