bin: plug several memory leaks

* src/bin/ltl2tgba.cc, src/bin/ltl2tgta.cc: Destroy the translated
formulas.
* src/bin/ltlcheck.cc, src/bin/ltlfilt.cc: Free the unicity table on
exit.
This commit is contained in:
Alexandre Duret-Lutz 2012-10-15 20:54:28 +02:00
parent 9f1d369563
commit d9ceb4adc4
4 changed files with 22 additions and 6 deletions

View file

@ -340,6 +340,13 @@ namespace
spot::ltl::ltl_simplifier& simpl;
fset_t unique_set;
~ltl_processor()
{
fset_t::iterator i = unique_set.begin();
while (i != unique_set.end())
(*i++)->destroy();
}
ltl_processor(spot::ltl::ltl_simplifier& simpl)
: simpl(simpl)
{