]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - code.c
Work on "did you mean? <ident>" support for errors. Using a three-part Bayes Theorem...
[xonotic/gmqcc.git] / code.c
diff --git a/code.c b/code.c
index e6cd6a313cd2f6812a69d1482423185894bd1a21..779fcb020dca0f8d94c68664ca88588d99805523 100644 (file)
--- a/code.c
+++ b/code.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012
+ * Copyright (C) 2012, 2013
  *     Dale Weiler
  *     Wolfgang Bumiller
  *
@@ -53,7 +53,7 @@ void code_pop_statement()
 }
 
 void code_init() {
-    prog_section_function  empty_function  = {0,0,0,0,0,0,0,{0}};
+    prog_section_function  empty_function  = {0,0,0,0,0,0,0,{0,0,0,0,0,0,0,0}};
     prog_section_statement empty_statement = {0,{0},{0},{0}};
     prog_section_def       empty_def       = {0, 0, 0};
     int                    i               = 0;
@@ -272,6 +272,8 @@ bool code_write(const char *filename, const char *lnofile) {
     vec_free(code_functions);
     vec_free(code_globals);
     vec_free(code_chars);
+    util_htdel(code_string_cache);
+
     file_close(fp);
     return true;
 }