From: Dave Airlie Date: Thu, 22 Jan 2009 11:31:06 +0000 (+1000) Subject: radeon: fix reloc free harder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c66e38d24fa8ffa2ac759ce118cb779fbce117d4;p=mesa.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 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);