This patch is at
http://cgit.freedesktop.org/~tade/mesa/commit/?h=xcb-integration&id=45737d791ca91fc33a8f6bfb2514c28409548c73
. This leak was only exposed when LIBGL_ALWAYS_INDIRECT is set.
Kristof
>From 45737d791ca91fc33a8f6bfb2514c28409548c73 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Ralovich,=20Krist=C3=B3f?= <[EMAIL PROTECTED]>
Date: Tue, 19 Aug 2008 11:42:40 +0200
Subject: [PATCH] Fix a leak when LIBGL_ALWAYS_INDIRECT is set.
---
src/glx/x11/glxext.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 5631a1e..39a3a62 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -163,6 +163,11 @@ XEXT_GENERATE_FIND_DISPLAY(__glXFindDisplay,
__glXExtensionInfo,
psc->configs = NULL; /* NOTE: just for paranoia */
}
+ if (psc->visuals) {
+ _gl_context_modes_destroy( psc->visuals );
+
+ psc->visuals = NULL; /* NOTE: just for paranoia */
+ }
Xfree((char*) psc->serverGLXexts);
#ifdef GLX_DIRECT_RENDERING
--
1.5.6.3
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev