mesa/st: Plug a fragment program variant parameter leak
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 8 Feb 2011 09:14:22 +0000 (01:14 -0800)
committerBrian Paul <brianp@vmware.com>
Tue, 8 Feb 2011 15:13:39 +0000 (08:13 -0700)
Fixes a minor memory leak with the "engine" mesa demo.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_program.c

index f6e44458492c39e8156a1af606d3ebd6ea50dec3..174b146ab73bdbbe9ddfbe20a447882375f3aeef 100644 (file)
@@ -108,6 +108,8 @@ delete_fp_variant(struct st_context *st, struct st_fp_variant *fpv)
 {
    if (fpv->driver_shader) 
       cso_delete_fragment_shader(st->cso_context, fpv->driver_shader);
+   if (fpv->parameters)
+      _mesa_free_parameter_list(fpv->parameters);
       
    FREE(fpv);
 }