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
|
|
@ -477,8 +477,11 @@ namespace spot
|
|||
// Free all the allocated memory.
|
||||
delete final_copy;
|
||||
hash_map::iterator hit;
|
||||
for (hit = state_set_map.begin(); hit != state_set_map.end(); ++hit)
|
||||
delete hit->first;
|
||||
for (hit = state_set_map.begin(); hit != state_set_map.end();)
|
||||
{
|
||||
hash_map::iterator old = hit++;
|
||||
delete old->first;
|
||||
}
|
||||
std::list<hash_set*>::iterator it;
|
||||
for (it = done.begin(); it != done.end(); ++it)
|
||||
delete *it;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue