From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 13:57:21 +0000 (+0200) Subject: clean lex->frames in lex_close X-Git-Tag: 0.1-rc1~219 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3efad75336f0b8bb1323ba12096a2e4b3defc724;p=xonotic%2Fgmqcc.git clean lex->frames in lex_close --- diff --git a/lexer.c b/lexer.c index 222ed84..d8fcf2e 100644 --- a/lexer.c +++ b/lexer.c @@ -150,6 +150,11 @@ lex_file* lex_open(const char *file) void lex_close(lex_file *lex) { + size_t i; + for (i = 0; i < lex->frames_count; ++i) + mem_d(lex->frames[i].name); + MEM_VECTOR_CLEAR(lex, frames); + if (lex->file) fclose(lex->file); if (lex->tok)