llvmpipe: Fix geometry shader token leak.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 13 Mar 2013 21:21:17 +0000 (21:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 13 Mar 2013 21:46:50 +0000 (21:46 +0000)
Trivial. Matches softpipe's code.

src/gallium/drivers/llvmpipe/lp_state_gs.c

index 1ba6f10821e8ffaf9fc89c0b456966945939c789..fd6f5f7d0da4a60f9471b211de0a45abc6fa6d56 100644 (file)
@@ -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);
 }