From: Dave Airlie Date: Thu, 22 Jan 2009 11:31:06 +0000 (+1000) Subject: radeon: fix reloc free harder X-Git-Tag: 062012170305~17746 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c66e38d24fa8ffa2ac759ce118cb779fbce117d4;p=profile%2Fivi%2Fmesa.git radeon: fix reloc free harder --- diff --git a/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c b/src/mesa/drivers/dri/radeon/radeon_cs_legacy.c index 0d0ea36..ef59dd1 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);