From: Alan Hourihane Date: Fri, 20 Nov 2009 18:08:29 +0000 (+0000) Subject: Fix memory leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dbf3642b9c1c37f72e2212ce78056cf8959a957;p=mesa.git Fix memory leak. --- diff --git a/src/gallium/drivers/softpipe/sp_state_fs.c b/src/gallium/drivers/softpipe/sp_state_fs.c index 256faa94b84..b41f7e8ab72 100644 --- a/src/gallium/drivers/softpipe/sp_state_fs.c +++ b/src/gallium/drivers/softpipe/sp_state_fs.c @@ -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 ); }