nv50: fix nv50_program->immd memory leak
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 18 Jan 2010 15:12:38 +0000 (16:12 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 18 Jan 2010 18:53:29 +0000 (19:53 +0100)
src/gallium/drivers/nv50/nv50_program.c

index 4111d212e691fc7cb0548669ab7557422298be77..22fa6e6ae423d585752daad6c8c489d0611c731a 100644 (file)
@@ -4659,6 +4659,7 @@ nv50_program_destroy(struct nv50_context *nv50, struct nv50_program *p)
 
        nouveau_bo_ref(NULL, &p->bo);
 
+       FREE(p->immd);
        nouveau_resource_free(&p->data[0]);
 
        p->translated = 0;