From 24cfd54eae6f34e3596ca154be72f922d66e6c77 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 8 May 2010 19:03:57 +0200 Subject: cleanup: missing initialization i ran across problems on a freshly installed ubuntu without any config files, m_keylist was not initialized, yet unsure why. --- src/Keys.cc | 2 ++ 1 file changed, 2 insertions(+) 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() { Keys::Keys(): m_reloader(new FbTk::AutoReloadHelper()), + m_keylist(0), next_key(0), saved_keymode(0) { m_reloader->setReloadCmd(FbTk::RefCount >(new FbTk::SimpleCommand(*this, &Keys::reload))); } @@ -214,6 +215,7 @@ Keys::~Keys() { void Keys::deleteTree() { destroyAndClearSecond(m_map); + m_keylist = 0; next_key = 0; saved_keymode = 0; } -- cgit v0.11.2