glsl2: Fix copy'n'paste hilarity leading to leaking in the refcount visitor.

This commit is contained in:
Eric Anholt
2010-08-18 11:42:42 -07:00
parent abc6d7e0b4
commit 0b09e6410f
2 changed files with 1 additions and 2 deletions

View File

@@ -101,7 +101,6 @@ do_dead_code(exec_list *instructions)
} }
} }
} }
talloc_free(v.mem_ctx);
return progress; return progress;
} }

View File

@@ -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 *);