X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=code.c;h=779fcb020dca0f8d94c68664ca88588d99805523;hp=e6cd6a313cd2f6812a69d1482423185894bd1a21;hb=72f056a4d76564648b570e35f47cd87868efc96c;hpb=35ba2dcaf99f4352869ad8519c35fefb1c53dd93 diff --git a/code.c b/code.c index e6cd6a3..779fcb0 100644 --- 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; }