nv50: fix nv50_stream_output_state leak

This commit is contained in:
Marcin Slusarz
2012-06-05 20:26:54 +02:00
parent cfa7cb991c
commit 3232a86efe
+3
View File
@@ -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;