* src/tgbaalgos/magic.cc (magic_search::~magic_search): Release

all iterators on the stack.
(magic_search::check): Release iterators that are popped off the
stack.
This commit is contained in:
Alexandre Duret-Lutz 2004-01-26 12:46:39 +00:00
parent 57ddf52df0
commit bdbaa8356c
2 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,10 @@
2004-01-26 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/tgbaalgos/magic.cc (magic_search::~magic_search): Release
all iterators on the stack.
(magic_search::check): Release iterators that are popped off the
stack.
* src/tgbatest/explpro2.test: Fix reordering regex.
* src/tgbatest/defs.in (run): Use libtool --mode=execute.

View file

@ -1,4 +1,4 @@
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
// Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
//
@ -43,6 +43,12 @@ namespace spot
}
if (x)
delete x;
// Release all iterators on the stack.
while (! stack.empty())
{
delete stack.front().second;
stack.pop_front();
}
}
void
@ -124,6 +130,7 @@ namespace spot
}
const state* s = p.first.s;
delete i;
stack.pop_front();
if (! magic && a->state_is_accepting(s))