From: Brian Paul Date: Tue, 8 Jul 2014 22:24:53 +0000 (-0600) Subject: st/mesa: fix geometry shader memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d10204930f26d906d8a464731c687249434ec72d;p=mesa.git st/mesa: fix geometry shader memory leak Spotted by Charmaine Lee. Cc: "10.2" Reviewed-by: Marek Olšák Reviewed-by: Charmaine Lee --- diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index c7f3ec6be41..c805a094b98 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 */