glsl2: Fix copy'n'paste hilarity leading to leaking in the refcount visitor.
This commit is contained in:
@@ -101,7 +101,6 @@ do_dead_code(exec_list *instructions)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
talloc_free(v.mem_ctx);
|
|
||||||
|
|
||||||
return progress;
|
return progress;
|
||||||
}
|
}
|
||||||
|
@@ -67,7 +67,7 @@ public:
|
|||||||
|
|
||||||
~ir_variable_refcount_visitor(void)
|
~ir_variable_refcount_visitor(void)
|
||||||
{
|
{
|
||||||
this->mem_ctx = talloc_new(NULL);
|
talloc_free(this->mem_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ir_visitor_status visit(ir_variable *);
|
virtual ir_visitor_status visit(ir_variable *);
|
||||||
|
Reference in New Issue
Block a user