Fix segfault with g++-3.3.
* src/tgbaalgos/minimize.cc (minimize_dfa): Fix deletion of the state_set_map. It led to a crash when compiled with g++-3.3.
This commit is contained in:
parent
b39e68c51e
commit
45d7c88062
2 changed files with 12 additions and 2 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
2011-01-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
|
Fix segfault with g++-3.3.
|
||||||
|
|
||||||
|
* src/tgbaalgos/minimize.cc (minimize_dfa): Fix deletion of the
|
||||||
|
state_set_map. It led to a crash when compiled with g++-3.3.
|
||||||
|
|
||||||
2011-01-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
2011-01-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||||
|
|
||||||
Fix a compilation failure with g++-3.3.
|
Fix a compilation failure with g++-3.3.
|
||||||
|
|
|
||||||
|
|
@ -477,8 +477,11 @@ namespace spot
|
||||||
// Free all the allocated memory.
|
// Free all the allocated memory.
|
||||||
delete final_copy;
|
delete final_copy;
|
||||||
hash_map::iterator hit;
|
hash_map::iterator hit;
|
||||||
for (hit = state_set_map.begin(); hit != state_set_map.end(); ++hit)
|
for (hit = state_set_map.begin(); hit != state_set_map.end();)
|
||||||
delete hit->first;
|
{
|
||||||
|
hash_map::iterator old = hit++;
|
||||||
|
delete old->first;
|
||||||
|
}
|
||||||
std::list<hash_set*>::iterator it;
|
std::list<hash_set*>::iterator it;
|
||||||
for (it = done.begin(); it != done.end(); ++it)
|
for (it = done.begin(); it != done.end(); ++it)
|
||||||
delete *it;
|
delete *it;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue