aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 626e836..5e30726 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -111,11 +111,11 @@ Keys::~Keys() {
111 111
112/// Destroys the keytree 112/// Destroys the keytree
113void Keys::deleteTree() { 113void Keys::deleteTree() {
114 while (!m_keylist.empty()) { 114 keylist_t::iterator it = m_keylist.begin();
115 if (m_keylist.back()) 115 const keylist_t::iterator end = m_keylist.end();
116 delete m_keylist.back(); 116 for ( ; it != end; it++)
117 m_keylist.pop_back(); 117 delete *it;
118 } 118 m_keylist.clear();
119} 119}
120 120
121/** 121/**