summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-07-01 02:03:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-07-01 02:03:00 +0000
commit559c494fc8b4cc8b058a2f2046ce492d0294e51e (patch)
tree8d49dd785fe398d0315153dea7d40a19b374c96e /src
parent03f52fea632b0f9aa1c1f9aa79a9f92ba82ec222 (diff)
replace some free() calls with _mesa_free()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.c9
-rw-r--r--src/mesa/tnl/t_vb_arbprogram_sse.c2
2 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c
index d166602d8e..96311ff17b 100644
--- a/src/mesa/tnl/t_vb_arbprogram.c
+++ b/src/mesa/tnl/t_vb_arbprogram.c
@@ -1004,8 +1004,9 @@ static void cvp_emit_inst( struct compilation *cp,
static void free_tnl_data( struct vertex_program *program )
{
struct tnl_compiled_program *p = program->TnlData;
- if (p->compiled_func) free((void *)p->compiled_func);
- free(p);
+ if (p->compiled_func)
+ _mesa_free((void *)p->compiled_func);
+ _mesa_free(p);
program->TnlData = NULL;
}
@@ -1369,7 +1370,7 @@ static GLboolean init_vertex_program( GLcontext *ctx,
const GLuint size = VB->Size;
GLuint i;
- stage->privatePtr = MALLOC(sizeof(*m));
+ stage->privatePtr = _mesa_malloc(sizeof(*m));
m = ARB_VP_MACHINE(stage);
if (!m)
return GL_FALSE;
@@ -1422,7 +1423,7 @@ static void dtr( struct tnl_pipeline_stage *stage )
ALIGN_FREE( m->clipmask );
ALIGN_FREE( m->File[0] );
- FREE( m );
+ _mesa_free( m );
stage->privatePtr = NULL;
}
}
diff --git a/src/mesa/tnl/t_vb_arbprogram_sse.c b/src/mesa/tnl/t_vb_arbprogram_sse.c
index b6ffdda7d3..bfe45912a7 100644
--- a/src/mesa/tnl/t_vb_arbprogram_sse.c
+++ b/src/mesa/tnl/t_vb_arbprogram_sse.c
@@ -851,7 +851,7 @@ _tnl_sse_codegen_vertex_program(struct tnl_compiled_program *p)
cp.have_sse2 = 1;
if (p->compiled_func) {
- free((void *)p->compiled_func);
+ _mesa_free((void *)p->compiled_func);
p->compiled_func = NULL;
}