fix posible memleak

This commit is contained in:
Jacek Jendrzej
2018-01-15 19:37:45 +01:00
parent d73d405a99
commit 4274b95c45

View File

@@ -111,6 +111,10 @@ void CTermWindow::showResult()
if (!exit) {
do {
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd);
if ( msg > CRCInput::RC_MaxRC && msg != CRCInput::RC_ok && msg != CRCInput::RC_home && msg != CRCInput::RC_timeout){
CNeutrinoApp::getInstance()->handleMsg( msg, data );
}
} while (msg != CRCInput::RC_ok && msg != CRCInput::RC_home && msg != CRCInput::RC_timeout);
}
}