From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 13:53:35 +0000 (+0200) Subject: fix a MEM_VECTOR_CLEAR to be done AFTER clearing the contents... X-Git-Tag: 0.1-rc1~221 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9eede6d303d48a070897f611ec91aa53b351e7d2;p=xonotic%2Fgmqcc.git fix a MEM_VECTOR_CLEAR to be done AFTER clearing the contents... --- diff --git a/ir.c b/ir.c index 636076e..5e7a923 100644 --- a/ir.c +++ b/ir.c @@ -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]); }