diff options
author | simonb <simonb> | 2006-04-22 15:37:04 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-22 15:37:04 (GMT) |
commit | 932eebe0ddbc611ccf72cbebebbde656ae2d08ec (patch) | |
tree | d83c10c1393094cfcef80d29f12634e6a5f04430 /src/Keys.cc | |
parent | 23cdfaaff3dcae62d50bddb087ecac94bca5be4c (diff) | |
download | fluxbox_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.cc | 3 |
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 | */ |
345 | bool Keys::reconfigure(const char *filename) { | 345 | bool Keys::reconfigure(const char *filename) { |
346 | deleteTree(); | ||
347 | return load(filename); | 346 | return load(filename); |
348 | } | 347 | } |
349 | 348 | ||