From fc31a25afa2d28dea9bbda08ce8deab5aa96b684 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sun, 12 Sep 2010 00:56:16 +0200 Subject: nv50: minor compiler fixes and cleanups --- src/gallium/drivers/nv50/nv50_pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/nv50/nv50_pc.c') diff --git a/src/gallium/drivers/nv50/nv50_pc.c b/src/gallium/drivers/nv50/nv50_pc.c index e063888eb5..26ad9b4e3d 100644 --- a/src/gallium/drivers/nv50/nv50_pc.c +++ b/src/gallium/drivers/nv50/nv50_pc.c @@ -237,6 +237,7 @@ nv_pc_free_refs(struct nv_pc *pc) int i; for (i = 0; i < pc->num_refs; i += 64) FREE(pc->refs[i]); + FREE(pc->refs); } static const char * @@ -525,7 +526,8 @@ out: for (i = 0; i < pc->num_blocks; ++i) FREE(pc->bb_list[i]); - + if (pc->root) + FREE(pc->root); if (ret) { /* on success, these will be referenced by nv50_program */ if (pc->emit) FREE(pc->emit); -- cgit v1.2.3