summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index b1dade7d0..4798cbd84 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -444,10 +444,11 @@ void StatusWindow::clearAttributes()
{
mAttrCont->clear();
mDAttrCont->clear();
- Attrs::iterator it = mAttrs.begin();
- Attrs::iterator it_end = mAttrs.end();
- for (; it != it_end; ++ it)
+ for (Attrs::iterator it = mAttrs.begin(), it_end = mAttrs.end();
+ it != it_end; ++ it)
+ {
delete (*it).second;
+ }
mAttrs.clear();
}