* 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:
parent
57ddf52df0
commit
bdbaa8356c
2 changed files with 13 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
2004-01-26 Alexandre Duret-Lutz <adl@src.lip6.fr>
|
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/explpro2.test: Fix reordering regex.
|
||||||
|
|
||||||
* src/tgbatest/defs.in (run): Use libtool --mode=execute.
|
* src/tgbatest/defs.in (run): Use libtool --mode=execute.
|
||||||
|
|
|
||||||
|
|
@ -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
|
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||||
// et Marie Curie.
|
// et Marie Curie.
|
||||||
//
|
//
|
||||||
|
|
@ -43,6 +43,12 @@ namespace spot
|
||||||
}
|
}
|
||||||
if (x)
|
if (x)
|
||||||
delete x;
|
delete x;
|
||||||
|
// Release all iterators on the stack.
|
||||||
|
while (! stack.empty())
|
||||||
|
{
|
||||||
|
delete stack.front().second;
|
||||||
|
stack.pop_front();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -124,6 +130,7 @@ namespace spot
|
||||||
}
|
}
|
||||||
|
|
||||||
const state* s = p.first.s;
|
const state* s = p.first.s;
|
||||||
|
delete i;
|
||||||
stack.pop_front();
|
stack.pop_front();
|
||||||
|
|
||||||
if (! magic && a->state_is_accepting(s))
|
if (! magic && a->state_is_accepting(s))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue