diff options
Diffstat (limited to 'src/gui/windowcontainer.cpp')
-rw-r--r-- | src/gui/windowcontainer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windowcontainer.cpp b/src/gui/windowcontainer.cpp index 899a5463..c42d5ccf 100644 --- a/src/gui/windowcontainer.cpp +++ b/src/gui/windowcontainer.cpp @@ -31,11 +31,12 @@ WindowContainer::WindowContainer() void WindowContainer::logic() { std::list<gcn::Widget*>::iterator i = deathList.begin(); - while (i != deathList.end()) { + for (i= deathList.begin(); i != deathList.end(); i++) { delete (*i); - i = deathList.erase(i); } + deathList.clear(); + gcn::Container::logic(); } |