summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarcin Slusarz <[email protected]>2012-06-05 20:26:54 +0200
committerMarcin Slusarz <[email protected]>2012-06-05 23:58:43 +0200
commit3232a86efe76df9fcee869c4ed4af8d68824920c (patch)
tree5bbffca201e2982a4a4c0d87b52d204845ed3560 /src/gallium
parentcfa7cb991ce7d2fd77ea7f5abf96c90d8a1ea68c (diff)
nv50: fix nv50_stream_output_state leak
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 67f86296da4..9c5a080f6d6 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -427,6 +427,9 @@ nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p)
if (p->fixups)
FREE(p->fixups);
+ if (p->so)
+ FREE(p->so);
+
memset(p, 0, sizeof(*p));
p->pipe = pipe;