X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=main.cpp;h=76c1d31a709394360dbc8fb7fdbf865aeb76a62a;hp=449067dec909a1225a1b8659b70f95d8fe78cea7;hb=f84c8ea62922f20b13e54916fac849ade0886b66;hpb=1a18ff529420930cb4116484991c2dabe3a70654 diff --git a/main.cpp b/main.cpp index 449067d..76c1d31 100644 --- a/main.cpp +++ b/main.cpp @@ -3,6 +3,7 @@ #include "gmqcc.h" #include "lexer.h" +#include "parser.h" /* TODO: cleanup this whole file .. it's a fuckign mess */ @@ -736,7 +737,7 @@ cleanup: vec_free(ppems); if (!OPTS_OPTION_BOOL(OPTION_PP_ONLY)) - if(parser) parser_cleanup(parser); + delete parser; /* free allocated option strings */ for (itr = 0; itr < OPTION_COUNT; itr++)