Mesa (mesa_7_7_branch): llvmpipe: Fix memory leak.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Jan 28 20:23:04 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: a0907a645f7d832e7c53d14c2ed88080b456a1a5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0907a645f7d832e7c53d14c2ed88080b456a1a5

Author: José Fonseca <jfonseca at 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 0e9bc1d..884e387 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_vs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_vs.c
@@ -96,5 +96,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 );
 }




More information about the mesa-commit mailing list