* src/tgbaalgos/replayrun.cc (replay_tgba_run): Fix a memory leak

if debug==false.
This commit is contained in:
Alexandre Duret-Lutz 2004-11-15 15:07:21 +00:00
parent 78be35142d
commit ea9af1f1b0
2 changed files with 7 additions and 0 deletions

View file

@ -138,6 +138,10 @@ namespace spot
// browse the actual outgoing transitions
tgba_succ_iterator* j = a->succ_iter(s);
// When not debugging, S is not used as key in SEEN, so we can
// delete it right now.
if (!debug)
delete s;
for (j->first(); !j->done(); j->next())
{
if (j->current_condition() != label