fix a MEM_VECTOR_CLEAR to be done AFTER clearing the contents...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-18 15:53:35 +02:00
parent 483ce89d78
commit 9eede6d303

2
ir.c
View file

@ -177,7 +177,7 @@ void ir_builder_delete(ir_builder* self)
for (i = 0; i != self->globals_count; ++i) {
ir_value_delete(self->globals[i]);
}
MEM_VECTOR_CLEAR(self, fields);
MEM_VECTOR_CLEAR(self, globals);
for (i = 0; i != self->fields_count; ++i) {
ir_value_delete(self->fields[i]);
}