mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glsl2: Fix copy'n'paste hilarity leading to leaking in the refcount visitor.
This commit is contained in:
parent
abc6d7e0b4
commit
0b09e6410f
2 changed files with 1 additions and 2 deletions
|
|
@ -101,7 +101,6 @@ do_dead_code(exec_list *instructions)
|
|||
}
|
||||
}
|
||||
}
|
||||
talloc_free(v.mem_ctx);
|
||||
|
||||
return progress;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public:
|
|||
|
||||
~ir_variable_refcount_visitor(void)
|
||||
{
|
||||
this->mem_ctx = talloc_new(NULL);
|
||||
talloc_free(this->mem_ctx);
|
||||
}
|
||||
|
||||
virtual ir_visitor_status visit(ir_variable *);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue