From: Marcin Slusarz Date: Tue, 5 Jun 2012 18:26:54 +0000 (+0200) Subject: nv50: fix nv50_stream_output_state leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3232a86efe76df9fcee869c4ed4af8d68824920c;p=mesa.git nv50: fix nv50_stream_output_state leak --- 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;