diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2011-10-20 17:39:29 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2011-11-24 17:40:01 -0200 |
commit | 305a8bcb2fc6f87f8d891fcb774198b6fd118ee1 (patch) | |
tree | 928d819749465d6d3c107b143c9a8785caffcea0 /glx | |
parent | f405dfffe7d5db81d398615a80acbeba7e014ada (diff) |
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 <paulo.r.zanoni@intel.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxscreens.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |