]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fix a MEM_VECTOR_CLEAR to be done AFTER clearing the contents...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 13:53:35 +0000 (15:53 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 13:53:35 +0000 (15:53 +0200)
ir.c

diff --git a/ir.c b/ir.c
index 636076ef6a1f7bff9ada181ba573b27ce36a4e54..5e7a92324752d79f2e0baa3a167aec2a0beeb43a 100644 (file)
--- 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]);
     }