st/mesa: fix geometry shader memory leak
authorBrian Paul <brianp@vmware.com>
Tue, 8 Jul 2014 22:24:53 +0000 (16:24 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 9 Jul 2014 12:43:26 +0000 (06:43 -0600)
Spotted by Charmaine Lee.
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_context.c

index c7f3ec6be41d72da0ef65b7fd8e5ee946b0e521b..c805a094b98d45a2d0697e79ff08bb9577e8d257 100644 (file)
@@ -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 */