projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1cbfc
)
radeon: Remove structure allocation from iterator variable.
author
Pauli Nieminen
<suokkos@gmail.com>
Thu, 10 Sep 2009 22:28:34 +0000
(
01:28
+0300)
committer
Pauli Nieminen
<suokkos@gmail.com>
Thu, 10 Sep 2009 22:29:07 +0000
(
01:29
+0300)
dma_bo varaible is only used for iterating so allocating memory for it only
causes memory leaks.
src/mesa/drivers/dri/radeon/radeon_dma.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_dma.c
b/src/mesa/drivers/dri/radeon/radeon_dma.c
index 2eefa3f2b1b8e8cf94e1f62e610e327e7f64ad1f..c9a32c808bef93c3381b9983c0254fc4def22e07 100644
(file)
--- a/
src/mesa/drivers/dri/radeon/radeon_dma.c
+++ b/
src/mesa/drivers/dri/radeon/radeon_dma.c
@@
-263,7
+263,7
@@
void radeonAllocDmaRegion(radeonContextPtr rmesa,
void radeonFreeDmaRegions(radeonContextPtr rmesa)
{
- struct radeon_dma_bo *dma_bo
= CALLOC_STRUCT(radeon_dma_bo)
;
+ struct radeon_dma_bo *dma_bo;
struct radeon_dma_bo *temp;
if (RADEON_DEBUG & RADEON_DMA)
fprintf(stderr, "%s\n", __FUNCTION__);