diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-01-19 05:39:18 -0800 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-01-19 06:14:12 -0800 |
commit | e5da7b8548842500e751b133b96b28113fbe0d76 (patch) | |
tree | 263a532df4acbba71fd11f15317ceabcd503feb3 /src/gallium/drivers | |
parent | faa99dd31de7dad4e9851b12f7f788adb6fce0fc (diff) |
softpipe: Fix vertex buffer memory leak.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_prim_vbuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_prim_vbuf.c b/src/gallium/drivers/softpipe/sp_prim_vbuf.c index 7f573aef3c..43a0bd4415 100644 --- a/src/gallium/drivers/softpipe/sp_prim_vbuf.c +++ b/src/gallium/drivers/softpipe/sp_prim_vbuf.c @@ -526,6 +526,8 @@ static void sp_vbuf_destroy(struct vbuf_render *vbr) { struct softpipe_vbuf_render *cvbr = softpipe_vbuf_render(vbr); + if(cvbr->vertex_buffer) + align_free(cvbr->vertex_buffer); sp_setup_destroy_context(cvbr->setup); FREE(cvbr); } |