Module: Mesa Branch: master Commit: 6ac66192a66b4370fd5601d876f5bdc84a4841b2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6ac66192a66b4370fd5601d876f5bdc84a4841b2
Author: Brian Paul <[email protected]> Date: Wed Sep 1 12:39:04 2010 -0600 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 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 a90edfb..dcd50e1 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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
