/*
- * Copyright (C) 2012
+ * Copyright (C) 2012, 2013
* Wolfgang Bumiller
* Dale Weiler
*
static void ftepp_delete(ftepp_t *self)
{
size_t i;
+ ftepp_flush(self);
if (self->itemname)
mem_d(self->itemname);
if (self->includename)
goto cleanup;
}
ftepp->output_string = old_string;
+ inlex->line = ftepp->lex->line;
+ inlex->sline = ftepp->lex->sline;
ftepp->lex = inlex;
ftepp_recursion_header(ftepp);
if (!ftepp_preprocess(ftepp)) {
+ vec_free(ftepp->lex->open_string);
+ old_string = ftepp->output_string;
lex_close(ftepp->lex);
retval = false;
goto cleanup;
}
+ vec_free(ftepp->lex->open_string);
ftepp_recursion_footer(ftepp);
old_string = ftepp->output_string;