diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-18 21:40:25 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-18 21:40:25 +0000 |
commit | aa6a0b7b75bc05e51805b6f377ca6278f1f58436 (patch) | |
tree | 718c211089348a3b67641d16821a98ae88de0285 /src/gui/windowcontainer.cpp | |
parent | d0333c99e0ff4c5510875bf8993056875d6c93af (diff) | |
download | mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.gz mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.bz2 mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.xz mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.zip |
Added automatic widget cleanup to the window class.
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(); } |