Commit 45d7c880 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

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.
parent b39e68c5
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 ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment