projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cbff09
)
mesa/st: Plug a fragment program variant parameter leak
author
Thomas Hellstrom
<thellstrom@vmware.com>
Tue, 8 Feb 2011 09:14:22 +0000
(
01:14
-0800)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.c
b/src/mesa/state_tracker/st_program.c
index f6e44458492c39e8156a1af606d3ebd6ea50dec3..174b146ab73bdbbe9ddfbe20a447882375f3aeef 100644
(file)
--- 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);
}