mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Don't delete the ftepp prematurely
This commit is contained in:
parent
498cbf6fa5
commit
f6b7ddf72b
1 changed files with 2 additions and 6 deletions
8
ftepp.c
8
ftepp.c
|
@ -1235,10 +1235,8 @@ bool ftepp_preprocess_file(const char *filename)
|
|||
con_out("failed to open file \"%s\"\n", filename);
|
||||
return false;
|
||||
}
|
||||
if (!ftepp_preprocess(ftepp)) {
|
||||
ftepp_delete(ftepp);
|
||||
if (!ftepp_preprocess(ftepp))
|
||||
return false;
|
||||
}
|
||||
return ftepp_preprocess_done();
|
||||
}
|
||||
|
||||
|
@ -1250,10 +1248,8 @@ bool ftepp_preprocess_string(const char *name, const char *str)
|
|||
con_out("failed to create lexer for string \"%s\"\n", name);
|
||||
return false;
|
||||
}
|
||||
if (!ftepp_preprocess(ftepp)) {
|
||||
ftepp_delete(ftepp);
|
||||
if (!ftepp_preprocess(ftepp))
|
||||
return false;
|
||||
}
|
||||
return ftepp_preprocess_done();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue