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

This commit is contained in:
Brian Paul
2008-09-05 08:07:20 -06:00
parent a0b5ac424b
commit 0f6e76d7f1
+1 -1
View File
@@ -1325,7 +1325,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;