nv50: fix nv50_stream_output_state leak
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 5 Jun 2012 18:26:54 +0000 (20:26 +0200)
committerMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 5 Jun 2012 21:58:43 +0000 (23:58 +0200)
src/gallium/drivers/nv50/nv50_program.c

index 67f86296da447c5a3076159bdf916ab04c545147..9c5a080f6d60f1d19d1143a4ae6edd3d10a341fb 100644 (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;