Mesa (master): nv50: fix nv50_stream_output_state leak

Marcin Åšlusarz mslusarz at kemper.freedesktop.org
Tue Jun 5 22:00:23 UTC 2012


Module: Mesa
Branch: master
Commit: 3232a86efe76df9fcee869c4ed4af8d68824920c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3232a86efe76df9fcee869c4ed4af8d68824920c

Author: Marcin Slusarz <marcin.slusarz at gmail.com>
Date:   Tue Jun  5 20:26:54 2012 +0200

nv50: fix nv50_stream_output_state leak

---

 src/gallium/drivers/nv50/nv50_program.c |    3 +++
 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 67f8629..9c5a080 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;




More information about the mesa-commit mailing list