projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
011e679
)
glslcompiler: Fix memory leaks on error paths.
author
Vinson Lee
<vlee@vmware.com>
Fri, 9 Jul 2010 23:20:32 +0000
(16:20 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 9 Jul 2010 23:20:32 +0000
(16:20 -0700)
src/mesa/drivers/glslcompiler/glslcompiler.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/glslcompiler/glslcompiler.c
b/src/mesa/drivers/glslcompiler/glslcompiler.c
index d002300e0922355e5ded0af9b6c2c7545874356f..4211e69ff9b21a607e15a553424abd6bfa6c61fd 100644
(file)
--- a/
src/mesa/drivers/glslcompiler/glslcompiler.c
+++ b/
src/mesa/drivers/glslcompiler/glslcompiler.c
@@
-125,6
+125,7
@@
CreateContext(void)
_mesa_destroy_visual(vis);
if (buf)
_mesa_destroy_framebuffer(buf);
+ free(cc);
return GL_FALSE;
}
@@
-142,6
+143,7
@@
CreateContext(void)
!_tnl_CreateContext( ctx ) ||
!_swsetup_CreateContext( ctx )) {
_mesa_destroy_visual(vis);
+ _mesa_destroy_framebuffer(buf);
_mesa_free_context_data(ctx);
free(cc);
return GL_FALSE;