diff options
author | Christoph Bumiller <[email protected]> | 2010-09-12 00:56:16 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-09-12 00:59:49 +0200 |
commit | fc31a25afa2d28dea9bbda08ce8deab5aa96b684 (patch) | |
tree | bd84522c05abdc54f295e8a479caa002809d913e /src/gallium/drivers/nv50/nv50_pc.c | |
parent | 7a4a537be1460b09b192fdf4d92680aad6c9e951 (diff) |
nv50: minor compiler fixes and cleanups
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_pc.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_pc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_pc.c b/src/gallium/drivers/nv50/nv50_pc.c index e063888eb5f..26ad9b4e3db 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); |