From 48893156192ff2ffbfaf910dbf51f5f7a904c568 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 13 Mar 2013 21:21:17 +0000 Subject: [PATCH] llvmpipe: Fix geometry shader token leak. Trivial. Matches softpipe's code. --- src/gallium/drivers/llvmpipe/lp_state_gs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/llvmpipe/lp_state_gs.c b/src/gallium/drivers/llvmpipe/lp_state_gs.c index 1ba6f10821e..fd6f5f7d0da 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); } -- 2.30.2