mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()

This commit is contained in:
Brian Paul 2008-09-05 08:06:59 -06:00
parent 9246c2fad4
commit 11d694b1bb
1 changed files with 1 additions and 1 deletions

View File

@ -1330,7 +1330,7 @@ _mesa_PushClientAttrib(GLbitfield mask)
newnode->next = head;
head = newnode;
/* unpacking attribs */
attr = MALLOC_STRUCT( gl_pixelstore_attrib );
attr = CALLOC_STRUCT( gl_pixelstore_attrib );
copy_pixelstore(ctx, attr, &ctx->Unpack);
newnode = new_attrib_node( GL_CLIENT_UNPACK_BIT );
newnode->data = attr;