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:
parent
bca59851f3
commit
24cfd54eae
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue