mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
clean lex->frames in lex_close
This commit is contained in:
parent
2045321296
commit
3efad75336
1 changed files with 5 additions and 0 deletions
5
lexer.c
5
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)
|
||||
|
|
Loading…
Reference in a new issue