aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.cc
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-22 15:37:04 (GMT)
committersimonb <simonb>2006-04-22 15:37:04 (GMT)
commit932eebe0ddbc611ccf72cbebebbde656ae2d08ec (patch)
treed83c10c1393094cfcef80d29f12634e6a5f04430 /src/Keys.cc
parent23cdfaaff3dcae62d50bddb087ecac94bca5be4c (diff)
downloadfluxbox_pavel-932eebe0ddbc611ccf72cbebebbde656ae2d08ec.zip
fluxbox_pavel-932eebe0ddbc611ccf72cbebebbde656ae2d08ec.tar.bz2
couple of memory fixes from valgrind
Diffstat (limited to 'src/Keys.cc')
-rw-r--r--src/Keys.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index c4099f6..78ad912 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -117,8 +117,8 @@ void Keys::deleteTree() {
117 delete *it; 117 delete *it;
118 map_it->second->clear(); 118 map_it->second->clear();
119 delete map_it->second; 119 delete map_it->second;
120 m_map.erase(map_it->first);
121 } 120 }
121 m_map.clear();
122} 122}
123 123
124/** 124/**
@@ -343,7 +343,6 @@ bool Keys::doAction(XKeyEvent &ke) {
343 returns true on success else false 343 returns true on success else false
344*/ 344*/
345bool Keys::reconfigure(const char *filename) { 345bool Keys::reconfigure(const char *filename) {
346 deleteTree();
347 return load(filename); 346 return load(filename);
348} 347}
349 348