summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-25 23:02:22 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-25 23:02:22 +0000
commit179e1951dd37fe1b39df4a6d5bc4be8ddaf3db9f (patch)
treed0faa4e339b1f2db0814875e1fc3734e5509c649
parent3956c7bbe49e50639a8ffca12712d0c6aa4256e8 (diff)
free codegen buffer in _tnl_free_vertices(), reported by Stephane Routelous
-rw-r--r--src/mesa/tnl/t_vertex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vertex.c b/src/mesa/tnl/t_vertex.c
index 984241c6a7..900648aa32 100644
--- a/src/mesa/tnl/t_vertex.c
+++ b/src/mesa/tnl/t_vertex.c
@@ -1286,5 +1286,9 @@ void _tnl_free_vertices( GLcontext *ctx )
if (vtx->vertex_buf) {
ALIGN_FREE(vtx->vertex_buf);
vtx->vertex_buf = 0;
+ if (vtx->codegen.buf) {
+ _mesa_free(vtx->codegen.buf);
+ vtx->codegen.buf = NULL;
+ }
}
}