cleanup: missing initialization

i ran across problems on a freshly installed ubuntu without
any config files, m_keylist was not initialized, yet unsure why.
This commit is contained in:
Mathias Gumz 2010-05-08 19:03:57 +02:00
parent bca59851f3
commit 24cfd54eae

View file

@ -199,6 +199,7 @@ Keys::t_key::~t_key() {
Keys::Keys(): Keys::Keys():
m_reloader(new FbTk::AutoReloadHelper()), m_reloader(new FbTk::AutoReloadHelper()),
m_keylist(0),
next_key(0), saved_keymode(0) { next_key(0), saved_keymode(0) {
m_reloader->setReloadCmd(FbTk::RefCount<FbTk::Command<void> >(new FbTk::SimpleCommand<Keys>(*this, &Keys::reload))); m_reloader->setReloadCmd(FbTk::RefCount<FbTk::Command<void> >(new FbTk::SimpleCommand<Keys>(*this, &Keys::reload)));
} }
@ -214,6 +215,7 @@ Keys::~Keys() {
void Keys::deleteTree() { void Keys::deleteTree() {
destroyAndClearSecond(m_map); destroyAndClearSecond(m_map);
m_keylist = 0;
next_key = 0; next_key = 0;
saved_keymode = 0; saved_keymode = 0;
} }