From 305a8bcb2fc6f87f8d891fcb774198b6fd118ee1 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Thu, 20 Oct 2011 17:39:29 -0200 Subject: glx: fix memory leak when destroying screen 1,152 bytes in 1 blocks are definitely lost in loss record 536 of 575 at 0x4C25E84: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x483820: __glXScreenInit (glxscreens.c:357) by 0x48271C: __glXDRIscreenProbe (glxdriswrast.c:469) by 0x4812BE: GlxExtensionInit (glxext.c:327) by 0x41FB14: InitExtensions (miinitext.c:471) by 0x5685AE: main (main.c:208) Signed-off-by: Paulo Zanoni Reviewed-by: Jeremy Huddleston --- glx/glxscreens.c | 1 + 1 file changed, 1 insertion(+) (limited to 'glx') diff --git a/glx/glxscreens.c b/glx/glxscreens.c index c4ad42648..ebb9747b4 100644 --- a/glx/glxscreens.c +++ b/glx/glxscreens.c @@ -422,4 +422,5 @@ void __glXScreenDestroy(__GLXscreen *screen) free(screen->GLXvendor); free(screen->GLXextensions); free(screen->GLextensions); + free(screen->visuals); } -- cgit v1.2.3