diff --git a/src/Keys.cc b/src/Keys.cc index 6ab5c7fb..d528d002 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; }