glXDestroyContext does not destroy the context if it's still connected to some window. Unbind context from window to test it. --- without this patch valgrind prints: in use at exit: 4,009,194 bytes in 1,615 blocks with this patch (and few others): in use at exit: 36,415 bytes in 430 blocks --- progs/xdemos/glxgears.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/progs/xdemos/glxgears.c b/progs/xdemos/glxgears.c index 088f25a..2993c82 100644 --- a/progs/xdemos/glxgears.c +++ b/progs/xdemos/glxgears.c @@ -771,6 +771,7 @@ main(int argc, char *argv[]) glDeleteLists(gear1, 1); glDeleteLists(gear2, 1); glDeleteLists(gear3, 1); + glXMakeCurrent(dpy, None, NULL); glXDestroyContext(dpy, ctx); XDestroyWindow(dpy, win); XCloseDisplay(dpy); -- 1.6.6 ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev