projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ae972
)
gallium: Use MALLOC().
author
Michal Krol
<michal@tungstengraphics.com>
Thu, 7 Feb 2008 09:26:08 +0000
(10:26 +0100)
committer
José Fonseca
<jrfonseca@tungstengraphics.com>
Fri, 15 Feb 2008 02:22:07 +0000
(11:22 +0900)
src/mesa/pipe/p_util.h
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/p_util.h
b/src/mesa/pipe/p_util.h
index a8938a7e43b3104558102dccbc6f73ecf486734e..d7da2801c92371bbdfaceecd91f9747683aa53ec 100644
(file)
--- a/
src/mesa/pipe/p_util.h
+++ b/
src/mesa/pipe/p_util.h
@@
-185,12
+185,12
@@
align_free(void *ptr)
/**
- * Duplicate
of a block of memory
+ * Duplicate
a block of memory.
*/
static INLINE void *
mem_dup(const void *src, uint size)
{
- void *dup =
malloc
(size);
+ void *dup =
MALLOC
(size);
if (dup)
memcpy(dup, src, size);
return dup;