From 3232a86efe76df9fcee869c4ed4af8d68824920c Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Tue, 5 Jun 2012 20:26:54 +0200 Subject: nv50: fix nv50_stream_output_state leak --- src/gallium/drivers/nv50/nv50_program.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; -- cgit v1.2.3