diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2009-09-11 01:28:34 +0300 |
---|---|---|
committer | Pauli Nieminen <suokkos@gmail.com> | 2009-09-11 01:29:07 +0300 |
commit | 796c96de808790826d9c9077d159390ebee62888 (patch) | |
tree | c2f7b205694e88fc8555129e94cbdf272679d437 /src/mesa/drivers/dri/radeon/radeon_dma.c | |
parent | 4b1cbfcbe66161a7b56d56cd9e2c35ce49b3a91d (diff) |
radeon: Remove structure allocation from iterator variable.
dma_bo varaible is only used for iterating so allocating memory for it only
causes memory leaks.
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_dma.c')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_dma.c b/src/mesa/drivers/dri/radeon/radeon_dma.c index 2eefa3f2b1..c9a32c808b 100644 --- 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__); |