mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 17:30:29 +01:00
mesa: use CALLOC instead of MALLOC to fix valgrind warning
This commit is contained in:
parent
c074b86cbc
commit
39e8860e45
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue