llvmpipe: Fix memory leak.
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 15 Nov 2009 14:46:48 +0000 (06:46 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 24 Nov 2009 14:25:20 +0000 (14:25 +0000)
src/gallium/drivers/llvmpipe/lp_state_vs.c

index 15c30296144117462f3b9f9bad4d3be86f4af877..8a761648e7ebe55cc00435881d8d57fd72ab09cd 100644 (file)
@@ -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 );
 }