radeon: plug memory leak running gears

This commit is contained in:
Dave Airlie 2009-01-23 08:08:34 +10:00
parent 9780127449
commit d93dc43382

View file

@ -337,11 +337,10 @@ static void inline cs_free_reloc(void *relocs_p, int crelocs)
{
struct cs_reloc_legacy *relocs = relocs_p;
int i;
if (relocs_p)
if (!relocs_p)
return;
for (i = 0; i < crelocs; i++) {
for (i = 0; i < crelocs; i++)
free(relocs[i].indices);
}
}
static int cs_destroy(struct radeon_cs *cs)