[Mesa-stable] [PATCH 2/2] st/mesa: fix geometry shader memory leak

Brian Paul brianp at vmware.com
Tue Jul 8 15:32:33 PDT 2014


Spotted by Charmaine Lee.
Cc: "10.2" <mesa-stable at lists.freedesktop.org>
---
 src/mesa/state_tracker/st_context.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index c7f3ec6..c805a09 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -307,6 +307,7 @@ void st_destroy_context( struct st_context *st )
    cso_release_all(st->cso_context);
 
    st_reference_fragprog(st, &st->fp, NULL);
+   st_reference_geomprog(st, &st->gp, NULL);
    st_reference_vertprog(st, &st->vp, NULL);
 
    /* release framebuffer surfaces */
-- 
1.7.10.4



More information about the mesa-stable mailing list