summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-02-08 01:14:22 -0800
committerBrian Paul <brianp@vmware.com>2011-02-08 08:13:39 -0700
commit80424700574e128070f457d79e1920d512a1efda (patch)
tree4a9c5787fd6efef9762370d3f210e2a0e221ec3b /src/mesa
parent5cbff0932e498f49b57cbb71037b93416bfe30e0 (diff)
mesa/st: Plug a fragment program variant parameter leak
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>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index f6e4445849..174b146ab7 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -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);
}