mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user