From e5da7b8548842500e751b133b96b28113fbe0d76 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 19 Jan 2010 05:39:18 -0800 Subject: softpipe: Fix vertex buffer memory leak. --- src/gallium/drivers/softpipe/sp_prim_vbuf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers') 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); } -- cgit v1.2.3