mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
at last, the annoying missing ast_delete(typevar)
This commit is contained in:
parent
d7f43dfa4d
commit
22896e5ef6
1 changed files with 3 additions and 1 deletions
4
parser.c
4
parser.c
|
@ -2449,8 +2449,10 @@ nextvar:
|
|||
return false;
|
||||
}
|
||||
|
||||
if (parser->tok == ';')
|
||||
if (parser->tok == ';') {
|
||||
ast_value_delete(typevar);
|
||||
return parser_next(parser) || parser->tok == TOKEN_EOF;
|
||||
}
|
||||
else if (opts_standard == COMPILER_QCC)
|
||||
parseerror(parser, "missing semicolon after function body (mandatory with -std=qcc)");
|
||||
ast_value_delete(typevar);
|
||||
|
|
Loading…
Reference in a new issue