Browse Source

nvc0: Fix memory leak.

Fixes resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
tags/mesa-9.2-rc1
Vinson Lee 13 years ago
parent
commit
0580f165ed
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/gallium/drivers/nvc0/nvc0_vbo.c

+ 1
- 0
src/gallium/drivers/nvc0/nvc0_vbo.c View File

@@ -89,6 +89,7 @@ nvc0_vertex_state_create(struct pipe_context *pipe,
case 4: fmt = PIPE_FORMAT_R32G32B32A32_FLOAT; break;
default:
assert(0);
FREE(so);
return NULL;
}
so->element[i].state = nvc0_format_table[fmt].vtx;

Loading…
Cancel
Save