mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 14:58:32 +02:00
nv50/ir: Free target if we failed to create a program
Signed-off-by: Pierre Moreau <pierre.morrow@free.fr> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
b490ca9a38
commit
dd7ab4dcb4
1 changed files with 3 additions and 1 deletions
|
|
@ -1224,8 +1224,10 @@ nv50_ir_generate_code(struct nv50_ir_prog_info *info)
|
|||
return -1;
|
||||
|
||||
nv50_ir::Program *prog = new nv50_ir::Program(type, targ);
|
||||
if (!prog)
|
||||
if (!prog) {
|
||||
nv50_ir::Target::destroy(targ);
|
||||
return -1;
|
||||
}
|
||||
prog->driver = info;
|
||||
prog->dbgFlags = info->dbgFlags;
|
||||
prog->optLevel = info->optLevel;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue