projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
860d0cc
)
radeon: better free of array
author
Dave Airlie
<airlied@linux.ie>
Thu, 22 Jan 2009 11:49:58 +0000
(21:49 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 22 Jan 2009 11:49:58 +0000
(21:49 +1000)
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
index 1f07c1c6c4f17f9b3e901818d049e2fe3419a6c6..f542ee041f836f5e43008258cc12cbb45a0fbbcd 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
@@
-339,11
+339,10
@@
static void inline cs_free_reloc(void *relocs_p, int crelocs)
{
struct cs_reloc_legacy *relocs = relocs_p;
int i;
-
+ if (relocs_p)
+ return;
for (i = 0; i < crelocs; i++) {
- struct cs_reloc_legacy *ptr = relocs[i];
- if (ptr)
- free(ptr->indices);
+ free(relocs[i].indices);
}
}