Mesa (master): Fix memory leak.

Alan Hourihane alanh at kemper.freedesktop.org
Fri Nov 20 18:09:33 UTC 2009


Module: Mesa
Branch: master
Commit: a24631bcd7ab2cbc6fff2a536502a07a13a9bc83
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a24631bcd7ab2cbc6fff2a536502a07a13a9bc83

Author: Alan Hourihane <alanh at vmware.com>
Date:   Fri Nov 20 18:08:29 2009 +0000

Fix memory leak.

---

 src/gallium/drivers/softpipe/sp_state_fs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_state_fs.c b/src/gallium/drivers/softpipe/sp_state_fs.c
index 256faa9..b41f7e8 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 );
 }
 




More information about the mesa-commit mailing list