projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b5ac4
)
mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 14:07:20 +0000
(08:07 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 14:07:20 +0000
(08:07 -0600)
src/mesa/main/attrib.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/attrib.c
b/src/mesa/main/attrib.c
index 4cbb0273ab6e8ef378775179f296dda42c84647d..7179fba3db32c43c0b309d8bbeb435b4e5b6cb0e 100644
(file)
--- a/
src/mesa/main/attrib.c
+++ b/
src/mesa/main/attrib.c
@@
-1325,7
+1325,7
@@
_mesa_PushClientAttrib(GLbitfield mask)
newnode->next = head;
head = newnode;
/* unpacking attribs */
- attr =
M
ALLOC_STRUCT( gl_pixelstore_attrib );
+ attr =
C
ALLOC_STRUCT( gl_pixelstore_attrib );
copy_pixelstore(ctx, attr, &ctx->Unpack);
newnode = new_attrib_node( GL_CLIENT_UNPACK_BIT );
newnode->data = attr;