mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
don't call ftepp_finish on a freed ftepp struct
This commit is contained in:
parent
d7be99c9dd
commit
4d394494b6
1 changed files with 3 additions and 1 deletions
4
main.c
4
main.c
|
@ -765,6 +765,7 @@ srcdone:
|
|||
}
|
||||
|
||||
ftepp_finish(ftepp);
|
||||
ftepp = NULL;
|
||||
if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY)) {
|
||||
if (!parser_finish(parser, OPTS_OPTION_STR(OPTION_OUTPUT))) {
|
||||
retval = 1;
|
||||
|
@ -786,7 +787,8 @@ srcdone:
|
|||
|
||||
cleanup:
|
||||
util_debug("COM", "cleaning ...\n");
|
||||
ftepp_finish(ftepp);
|
||||
if (ftepp)
|
||||
ftepp_finish(ftepp);
|
||||
con_close();
|
||||
vec_free(items);
|
||||
vec_free(ppems);
|
||||
|
|
Loading…
Reference in a new issue