summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-01-22 21:31:06 +1000
committerDave Airlie <[email protected]>2009-01-22 21:31:06 +1000
commitc66e38d24fa8ffa2ac759ce118cb779fbce117d4 (patch)
tree191219edef30b6f41d5e4704269d41fc7897bc1f
parentbb7756eaed7b6c51a2da2ed9905b79172be91881 (diff)
radeon: fix reloc free harder
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_cs_legacy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
index 0d0ea364028..ef59dd1f5c8 100644
--- a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
+++ b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c
@@ -337,7 +337,9 @@ static int cs_emit(struct radeon_cs *cs)
static int cs_destroy(struct radeon_cs *cs)
{
- free(cs->relocs->indices);
+ struct cs_reloc_legacy *relocs;
+ relocs = cs->relocs;
+ free(relocs->indices);
free(cs->relocs);
free(cs->packets);
free(cs);