Module: Mesa
Branch: master
Commit: 066991c8d147db94b9661361bb191919b962fc4e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=066991c8d147db94b9661361bb191919b962fc4e

Author: José Fonseca <jfons...@vmware.com>
Date:   Sun Nov 15 06:46:48 2009 -0800

llvmpipe: Fix memory leak.

---

 src/gallium/drivers/llvmpipe/lp_state_vs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_state_vs.c 
b/src/gallium/drivers/llvmpipe/lp_state_vs.c
index 15c3029..8a76164 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_vs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_vs.c
@@ -92,5 +92,6 @@ llvmpipe_delete_vs_state(struct pipe_context *pipe, void *vs)
       (struct lp_vertex_shader *)vs;
 
    draw_delete_vertex_shader(llvmpipe->draw, state->draw_data);
+   FREE( (void *)state->shader.tokens );
    FREE( state );
 }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to