summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-09-01 13:10:23 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-01 13:10:54 -0600
commit39e8860e45fae2968917bdb7fe572c8793bbce30 (patch)
tree033bde360da76876089a6825f826ff746794818c /src
parentc074b86cbc664e973486caaca0817b9a1654be3d (diff)
mesa: use CALLOC instead of MALLOC to fix valgrind warning
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/arrayobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c
index d62661e2b5..af2feb3553 100644
--- a/src/mesa/main/arrayobj.c
+++ b/src/mesa/main/arrayobj.c
@@ -77,7 +77,7 @@ lookup_arrayobj(GLcontext *ctx, GLuint id)
struct gl_array_object *
_mesa_new_array_object( GLcontext *ctx, GLuint name )
{
- struct gl_array_object *obj = MALLOC_STRUCT(gl_array_object);
+ struct gl_array_object *obj = CALLOC_STRUCT(gl_array_object);
if (obj)
_mesa_initialize_array_object(ctx, obj, name);
return obj;