projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9246c2f
)
mesa: replace MALLOC w/ CALLOC to fix memory error in glPushClientAttrib()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 14:06:59 +0000
(08:06 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 14:06:59 +0000
(08:06 -0600)
src/mesa/main/attrib.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/attrib.c
b/src/mesa/main/attrib.c
index
94475b9
..
59babeb
100644
(file)
--- a/
src/mesa/main/attrib.c
+++ b/
src/mesa/main/attrib.c
@@
-1330,7
+1330,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;