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

Author: José Fonseca <[email protected]>
Date:   Wed Mar 13 21:21:17 2013 +0000

llvmpipe: Fix geometry shader token leak.

Trivial. Matches softpipe's code.

---

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

diff --git a/src/gallium/drivers/llvmpipe/lp_state_gs.c 
b/src/gallium/drivers/llvmpipe/lp_state_gs.c
index 1ba6f10..fd6f5f7 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_gs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_gs.c
@@ -99,6 +99,7 @@ llvmpipe_delete_gs_state(struct pipe_context *pipe, void *gs)
 
    draw_delete_geometry_shader(llvmpipe->draw,
                                (state) ? state->draw_data : 0);
+   FREE( (void *)state->shader.tokens );
    FREE(state);
 }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to