diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-05-08 17:03:57 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-05-08 17:03:57 (GMT) |
commit | 24cfd54eae6f34e3596ca154be72f922d66e6c77 (patch) | |
tree | 89e6cb656c4d13b955a28b69763fa3aacf98c72d /src/Keys.cc | |
parent | bca59851f396ecb10bfbb13e60e17395490167e5 (diff) | |
download | fluxbox-24cfd54eae6f34e3596ca154be72f922d66e6c77.zip fluxbox-24cfd54eae6f34e3596ca154be72f922d66e6c77.tar.bz2 |
cleanup: missing initialization
i ran across problems on a freshly installed ubuntu without
any config files, m_keylist was not initialized, yet unsure why.
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 6ab5c7f..d528d00 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -199,6 +199,7 @@ Keys::t_key::~t_key() { | |||
199 | 199 | ||
200 | Keys::Keys(): | 200 | Keys::Keys(): |
201 | m_reloader(new FbTk::AutoReloadHelper()), | 201 | m_reloader(new FbTk::AutoReloadHelper()), |
202 | m_keylist(0), | ||
202 | next_key(0), saved_keymode(0) { | 203 | next_key(0), saved_keymode(0) { |
203 | m_reloader->setReloadCmd(FbTk::RefCount<FbTk::Command<void> >(new FbTk::SimpleCommand<Keys>(*this, &Keys::reload))); | 204 | m_reloader->setReloadCmd(FbTk::RefCount<FbTk::Command<void> >(new FbTk::SimpleCommand<Keys>(*this, &Keys::reload))); |
204 | } | 205 | } |
@@ -214,6 +215,7 @@ Keys::~Keys() { | |||
214 | void Keys::deleteTree() { | 215 | void Keys::deleteTree() { |
215 | 216 | ||
216 | destroyAndClearSecond(m_map); | 217 | destroyAndClearSecond(m_map); |
218 | m_keylist = 0; | ||
217 | next_key = 0; | 219 | next_key = 0; |
218 | saved_keymode = 0; | 220 | saved_keymode = 0; |
219 | } | 221 | } |