From 80424700574e128070f457d79e1920d512a1efda Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 8 Feb 2011 01:14:22 -0800 Subject: [PATCH] mesa/st: Plug a fragment program variant parameter leak Fixes a minor memory leak with the "engine" mesa demo. Signed-off-by: Thomas Hellstrom Signed-off-by: Brian Paul --- src/mesa/state_tracker/st_program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index f6e44458492..174b146ab73 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); } -- 2.30.2