Fix memory leak.
authorAlan Hourihane <alanh@vmware.com>
Fri, 20 Nov 2009 18:08:29 +0000 (18:08 +0000)
committerAlan Hourihane <alanh@vmware.com>
Fri, 20 Nov 2009 18:08:29 +0000 (18:08 +0000)
src/gallium/drivers/softpipe/sp_state_fs.c

index 256faa94b84207cda61ca4b27bdb712cd3a4a8eb..b41f7e8ab726c5feacffb388479bcd13c97ac684 100644 (file)
@@ -143,6 +143,7 @@ softpipe_delete_vs_state(struct pipe_context *pipe, void *vs)
    struct sp_vertex_shader *state = (struct sp_vertex_shader *) vs;
 
    draw_delete_vertex_shader(softpipe->draw, state->draw_data);
+   FREE( (void *)state->shader.tokens );
    FREE( state );
 }